import type { GeneratedEtsLibFile } from "../../types/generated";

export const FILE: GeneratedEtsLibFile = {
  path: 'ets/component/web.d.ts',
  content: "/*\n * Copyright (c) 2021-2022 Huawei Device Co., Ltd.\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n *     http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n/**\n * @file\n * @kit ArkWeb\n */\n/**\n * Provides methods for controlling the web controller.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Provides methods for controlling the web controller.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Provides methods for controlling the web controller.\n *\n * @typedef { import('../api/@ohos.web.webview').default.WebviewController }\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare type WebviewController = import('../api/@ohos.web.webview').default.WebviewController;\n/**\n * The callback of load committed.\n *\n * @typedef { function } OnNavigationEntryCommittedCallback\n * @param { LoadCommittedDetails } loadCommittedDetails - callback information of onNavigationEntryCommitted.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ntype OnNavigationEntryCommittedCallback = (loadCommittedDetails: LoadCommittedDetails) => void;\n/**\n * The callback of ssl error event.\n *\n * @typedef { function } OnSslErrorEventCallback\n * @param { SslErrorEvent } sslErrorEvent - callback information of onSslErrorEvent.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnSslErrorEventCallback = (sslErrorEvent: SslErrorEvent) => void;\n/**\n * The callback of largestContentfulPaint.\n *\n * @typedef { function } OnLargestContentfulPaintCallback\n * @param { LargestContentfulPaint } largestContentfulPaint - callback information of onLargestContentfulPaint.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnLargestContentfulPaintCallback = (largestContentfulPaint: LargestContentfulPaint) => void;\n/**\n * The callback of firstMeaningfulPaint.\n *\n * @typedef { function } OnFirstMeaningfulPaintCallback\n * @param { FirstMeaningfulPaint } firstMeaningfulPaint - callback information of onFirstMeaningfulPaint.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnFirstMeaningfulPaintCallback = (firstMeaningfulPaint: FirstMeaningfulPaint) => void;\n/**\n * The callback of onOverrideUrlLoading.\n * Should not call WebviewController.loadUrl with the request's URL and then return true.\n *\n * @typedef { function } OnOverrideUrlLoadingCallback\n * @param { WebResourceRequest } webResourceRequest - callback information of onOverrideUrlLoading.\n * @returns { boolean } - Returning true causes the current Web to abort loading the URL,\n *                        false causes the Web to continue loading the url as usual.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnOverrideUrlLoadingCallback = (webResourceRequest: WebResourceRequest) => boolean;\n/**\n * The callback of Intelligent Tracking Prevention.\n *\n * @typedef { function } OnIntelligentTrackingPreventionCallback\n * @param { IntelligentTrackingPreventionDetails } details - callback information of onIntelligentTrackingPrevention.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnIntelligentTrackingPreventionCallback = (details: IntelligentTrackingPreventionDetails) => void;\n/**\n * The callback of onNativeEmbedVisibilityChange.\n *\n * @typedef { function } OnNativeEmbedVisibilityChangeCallback\n * @param { NativeEmbedVisibilityInfo } nativeEmbedVisibilityInfo - callback information of onNativeEmbedVisibilityChange.\n * @syscap SystemCapability.Web.Webview.Core\n * @since 12\n */\ntype OnNativeEmbedVisibilityChangeCallback = (nativeEmbedVisibilityInfo: NativeEmbedVisibilityInfo) => void;\n/**\n * The configuration of native media player.\n *\n * @typedef NativeMediaPlayerConfig\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface NativeMediaPlayerConfig {\n    /**\n     * Whether to enable the application to take over the webpage media playback function.\n     *\n     * @type { boolean }\n     *    {@code true} means to enable the application to take over the web media playback function, {@code false} otherwise.\n     *    Deflault value: false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enable: boolean;\n    /**\n     * Whether the video player's display overlays the web page content when the application takes over the web page's video player.\n     *\n     * @type { boolean }\n     *    {@code true} means changing the height of the video layer to cover the content of the webpage, {@code false} otherwise.\n     *    Deflault value: false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    shouldOverlay: boolean;\n}\n/**\n * The callback of render process not responding.\n *\n * @typedef { function } OnRenderProcessNotRespondingCallback\n * @param { RenderProcessNotRespondingData } data - details of onRenderProcessNotResponding.\n * @syscap SystemCapability.Web.Webview.Core\n * @since 12\n */\ntype OnRenderProcessNotRespondingCallback = (data: RenderProcessNotRespondingData) => void;\n/**\n * The callback of render process responding.\n *\n * @typedef { function } OnRenderProcessRespondingCallback\n * @syscap SystemCapability.Web.Webview.Core\n * @since 12\n */\ntype OnRenderProcessRespondingCallback = () => void;\n/**\n * The callback of ViewportFit Changed.\n *\n * @typedef { function } OnViewportFitChangedCallback\n * @param { ViewportFit } viewportFit - details of OnViewportFitChangedCallback.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnViewportFitChangedCallback = (viewportFit: ViewportFit) => void;\n/**\n * The callback of ads block\n *\n * @typedef { function } OnAdsBlockedCallback\n * @param { AdsBlockedDetails } details - details of OnAdsBlockedCallback.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype OnAdsBlockedCallback = (details: AdsBlockedDetails) => void;\n/**\n * Defines the ads block details.\n *\n * @interface AdsBlockedDetails\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface AdsBlockedDetails {\n    /**\n     * The url of main frame.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * the url of ads.\n     *\n     * @type { Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    adsBlocked: Array<string>;\n}\n/**\n * Defines the web keyboard options when onInterceptKeyboardAttach event return.\n *\n * @interface WebKeyboardOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface WebKeyboardOptions {\n    /**\n     * Whether the system keyboard is used.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    useSystemKeyboard: boolean;\n    /**\n     * Set the enter key type when the system keyboard is used, the \"enter\" key related to the {@link inputMethodEngine}.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enterKeyType?: number;\n    /**\n     * Set the custom keyboard builder when the custom keyboard is used.\n     *\n     * @type { ?CustomBuilder }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    customKeyboard?: CustomBuilder;\n}\n/**\n * Define the controller to interact with a custom keyboard, related to the {@link onInterceptKeyboardAttach} event.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare class WebKeyboardController {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    constructor();\n    /**\n     * Insert characters in the Web input field.\n     *\n     * @param { string } text - text which will be inserted.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    insertText(text: string): void;\n    /**\n     * Deletes the specified length of characters from the back to the front in the Web input field.\n     *\n     * @param { number } length - length of text, which will be deleted from back to front.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    deleteForward(length: number): void;\n    /**\n     * Delete the specified length of characters in the Web input field from the beginning to the end.\n     *\n     * @param { number } length - length of text, which will be deleted from front to back.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    deleteBackward(length: number): void;\n    /**\n     * Send the function of the key.\n     *\n     * @param { number } key - action indicates the \"enter\" key related to the {@link inputMethodEngine}\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    sendFunctionKey(key: number): void;\n    /**\n     * Close the custom keyboard.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    close(): void;\n}\n/**\n * Defines the web keyboard callback info related to the {@link onInterceptKeyboardAttach} event.\n *\n * @interface WebKeyboardCallbackInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface WebKeyboardCallbackInfo {\n    /**\n     * The web keyboard controller.\n     *\n     * @type { WebKeyboardController }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    controller: WebKeyboardController;\n    /**\n     * The attributes of web input element.\n     *\n     * @type { Record<string, string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    attributes: Record<string, string>;\n}\n/**\n * The callback of onInterceptKeyboardAttach event.\n *\n * @typedef { function } WebKeyboardCallback\n * @param { WebKeyboardCallbackInfo } keyboardCallbackInfo - callback information of onInterceptKeyboardAttach.\n * @returns { WebKeyboardOptions } Return the web keyboard options of this web component.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ntype WebKeyboardCallback = (keyboardCallbackInfo: WebKeyboardCallbackInfo) => WebKeyboardOptions;\n/**\n * Enum type supplied to {@link getMessageLevel} for receiving the console log level of JavaScript.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Enum type supplied to {@link getMessageLevel} for receiving the console log level of JavaScript.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare enum MessageLevel {\n    /**\n     * Debug level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Debug level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    Debug,\n    /**\n     * Error level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Error level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    Error,\n    /**\n     * Info level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Info level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    Info,\n    /**\n     * Log level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Log level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    Log,\n    /**\n     * Warn level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Warn level.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    Warn\n}\n/**\n * The Web's behavior to load from HTTP or HTTPS. Defaults to MixedMode.None.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * The Web's behavior to load from HTTP or HTTPS. Defaults to MixedMode.None.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * The Web's behavior to load from HTTP or HTTPS. Defaults to MixedMode.None.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare enum MixedMode {\n    /**\n     * Allows all sources.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Allows all sources.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Allows all sources.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    All = 0,\n    /**\n     * Allows sources Compatibly.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Allows sources Compatibly.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Allows sources Compatibly.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    Compatible = 1,\n    /**\n     * Don't allow unsecure sources from a secure origin.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Don't allow unsecure sources from a secure origin.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Don't allow unsecure sources from a secure origin.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    None = 2\n}\n/**\n * The callback of safe browsing check.\n *\n * @typedef { function } OnSafeBrowsingCheckResultCallback\n * @param { ThreatType } threatType - callback information of onSafeBrowsingCheckResult.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ntype OnSafeBrowsingCheckResultCallback = (threatType: ThreatType) => void;\n/**\n * Enum type supplied to {@link getHitTest} for indicating the cursor node HitTest.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Enum type supplied to {@link getHitTest} for indicating the cursor node HitTest.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum HitTestType {\n    /**\n     * The edit text.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The edit text.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    EditText = 0,\n    /**\n     * The email address.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The email address.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Email = 1,\n    /**\n     * The HTML::a tag with src=http.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The HTML::a tag with src=http.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    HttpAnchor = 2,\n    /**\n     * The HTML::a tag with src=http + HTML::img.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The HTML::a tag with src=http + HTML::img.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    HttpAnchorImg = 3,\n    /**\n     * The HTML::img tag.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The HTML::img tag.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Img = 4,\n    /**\n     * The map address.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The map address.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Map = 5,\n    /**\n     * The phone number.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * The phone number.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Phone = 6,\n    /**\n     * Other unknown HitTest.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Other unknown HitTest.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Unknown = 7\n}\n/**\n * Enum type supplied to {@link cacheMode} for setting the Web cache mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Enum type supplied to {@link cacheMode} for setting the Web cache mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Enum type supplied to {@link cacheMode} for setting the Web cache mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare enum CacheMode {\n    /**\n     * load cache when they are available and not expired, otherwise load online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * load cache when they are available and not expired, otherwise load online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * load cache when they are available and not expired, otherwise load online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    Default = 0,\n    /**\n     * load cache when they are available, otherwise load online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * load cache when they are available, otherwise load online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * load cache when they are available, otherwise load online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    None = 1,\n    /**\n     * Load online and not cache.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Load online and not cache.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Load online and not cache.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    Online = 2,\n    /**\n     * load cache and not online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * load cache and not online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * load cache and not online.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    Only = 3\n}\n/**\n * Enum type supplied to {@link overScrollMode} for setting the web overScroll mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum OverScrollMode {\n    /**\n     * Disable the web over-scroll mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    NEVER = 0,\n    /**\n     * Enable the web over-scroll mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ALWAYS = 1\n}\n/**\n * Enum type supplied to {@link blurOnKeyboardHideMode} for setting the web blurOnKeyboardHide mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 14\n */\ndeclare enum BlurOnKeyboardHideMode {\n    /**\n     * The focused input elements on webview will not blur when soft keyboard is hidden manually.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    SILENT = 0,\n    /**\n     * The focused input elements on webview will blur when soft keyboard is hidden manually.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    BLUR = 1\n}\n/**\n * Enum type supplied to {@link darkMode} for setting the web dark mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Enum type supplied to {@link darkMode} for setting the web dark mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum WebDarkMode {\n    /**\n     * Disable the web dark mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Disable the web dark mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Off = 0,\n    /**\n     * Enable the web dark mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Enable the web dark mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    On = 1,\n    /**\n     * Make web dark mode follow the system.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Make web dark mode follow the system.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Auto = 2\n}\n/**\n * Enum type supplied to {@link captureMode} for setting the web capture mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 10\n */\n/**\n * Enum type supplied to {@link captureMode} for setting the web capture mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum WebCaptureMode {\n    /**\n     * The home screen.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Capture of the home screen.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    HOME_SCREEN = 0\n}\n/**\n * Enum type supplied to {@link threatType} for the website's threat type.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum ThreatType {\n    /**\n     * Illegal websites.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    THREAT_ILLEGAL = 0,\n    /**\n     * Fraud websites.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    THREAT_FRAUD = 1,\n    /**\n     * Websites with security risks.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    THREAT_RISK = 2,\n    /**\n     * Websites suspected of containing unhealthy content.\n     * ArkWeb will not intercept this type of website and apps could handle it themselves.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    THREAT_WARNING = 3\n}\n/**\n * Defines the Media Options.\n *\n * @interface WebMediaOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @since 10\n */\n/**\n * Defines the Media Options.\n *\n * @interface WebMediaOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the Media Options.\n *\n * @typedef WebMediaOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface WebMediaOptions {\n    /**\n     * The time interval for audio playback to resume.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Validity period for automatically resuming a paused web audio, in seconds.\n     * The maximum validity period is 60 seconds. Due to the approximate value,\n     * the validity period may have a deviation of less than 1 second.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    resumeInterval?: number;\n    /**\n     * Whether the audio of each web is exclusive.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Whether the audio of multiple Web instances in an application is exclusive.\n     *\n     * @type { ?boolean }\n     *    {@code true} means audio exclusivity for multiple web instances within the application, {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    audioExclusive?: boolean;\n}\n/**\n * Defines the screen capture configuration.\n *\n * @interface ScreenCaptureConfig\n * @syscap SystemCapability.Web.Webview.Core\n * @since 10\n */\n/**\n * Defines the screen capture configuration.\n *\n * @interface ScreenCaptureConfig\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the screen capture configuration.\n *\n * @typedef ScreenCaptureConfig\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface ScreenCaptureConfig {\n    /**\n     * The mode for selecting the recording area.\n     *\n     * @type { WebCaptureMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * The mode for selecting the recording area.\n     *\n     * @type { WebCaptureMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    captureMode: WebCaptureMode;\n}\n/**\n * Define the handler to exit the full screen mode, related to the {@link onFullScreenEnter} event.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Define the handler to exit the full screen mode, related to the {@link onFullScreenEnter} event.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Define the handler to exit the full screen mode, related to the {@link onFullScreenEnter} event.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare class FullScreenExitHandler {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    constructor();\n    /**\n     * Exit the full screen mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Exit the full screen mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when the Web component exits full screen mode.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    exitFullScreen(): void;\n}\n/**\n * Defines the event details when the web component enter full screen mode.\n *\n * @typedef FullScreenEnterEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\n/**\n * Defines the event details when the web component enter full screen mode.\n *\n * @typedef FullScreenEnterEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare interface FullScreenEnterEvent {\n    /**\n     * A function handle to exit full-screen mode.\n     *\n     * @type { FullScreenExitHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * A function handle to exit full-screen mode.\n     *\n     * @type { FullScreenExitHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    handler: FullScreenExitHandler;\n    /**\n     * The intrinsic width of the video if the fullscreen element contains video element, expressed in CSS pixels.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The intrinsic width of the video if the fullscreen element contains video element, expressed in CSS pixels.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    videoWidth?: number;\n    /**\n     * The intrinsic height of the video if the fullscreen element contains video element, expressed in CSS pixels.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The intrinsic height of the video if the fullscreen element contains video element, expressed in CSS pixels.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    videoHeight?: number;\n}\n/**\n * The callback when the web component enter full screen mode.\n *\n * @typedef { function } OnFullScreenEnterCallback\n * @param { FullScreenEnterEvent } event - callback information of onFullScreenEnter.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\n/**\n * The callback when the web component enter full screen mode.\n *\n * @typedef { function } OnFullScreenEnterCallback\n * @param { FullScreenEnterEvent } event - callback information of onFullScreenEnter.\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ntype OnFullScreenEnterCallback = (event: FullScreenEnterEvent) => void;\n/**\n * Enum type supplied to {@link renderExitReason} when onRenderExited being called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Enum type supplied to {@link renderExitReason} when onRenderExited being called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum RenderExitReason {\n    /**\n     * Render process non-zero exit status.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Render process non-zero exit status.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ProcessAbnormalTermination = 0,\n    /**\n     * SIGKILL or task manager kill.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * SIGKILL or task manager kill.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ProcessWasKilled = 1,\n    /**\n     * Segmentation fault.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The rendering process crashes and exits, such as a segment error.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ProcessCrashed = 2,\n    /**\n     * Out of memory.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Out of memory.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ProcessOom = 3,\n    /**\n     * Unknown reason.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Unknown reason.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ProcessExitUnknown = 4\n}\n/**\n * The callback of custom hide of the context menu.\n *\n * @typedef { function } OnContextMenuHideCallback\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ntype OnContextMenuHideCallback = () => void;\n/**\n * Enum type supplied to {@link error} when onSslErrorEventReceive being called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Enum type supplied to {@link error} when onSslErrorEventReceive being called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum SslError {\n    /**\n     * General error.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * General error.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Invalid = 0,\n    /**\n     * Hostname mismatch.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Hostname mismatch.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    HostMismatch = 1,\n    /**\n     * The certificate date is invalid.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The certificate date is invalid.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    DateInvalid = 2,\n    /**\n     * The certificate authority is not trusted.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The certificate authority is not trusted.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Untrusted = 3\n}\n/**\n * Enum type supplied to {@link FileSelectorParam} when onFileSelectorShow being called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Enum type supplied to {@link FileSelectorParam} when onFileSelectorShow being called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare enum FileSelectorMode {\n    /**\n     * Allows single file to be selected.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Allows single file to be selected.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    FileOpenMode = 0,\n    /**\n     * Allows multiple files to be selected.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Allows multiple files to be selected.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    FileOpenMultipleMode = 1,\n    /**\n     * Allows file folders to be selected.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Allows file folders to be selected.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    FileOpenFolderMode = 2,\n    /**\n     * Allows select files to save.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Allows select files to save.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    FileSaveMode = 3\n}\n/**\n * Enum type supplied to {@link layoutMode} for setting the web layout mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum WebLayoutMode {\n    /**\n     * Web layout follows the system.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    NONE = 0,\n    /**\n     * Adaptive web layout based on page size.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    FIT_CONTENT = 1\n}\n/**\n * Enum type supplied to {@link RenderProcessNotRespondingData} when onRenderProcessNotResponding is called.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 12\n */\ndeclare enum RenderProcessNotRespondingReason {\n    /**\n     * Timeout for input sent to render process.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    INPUT_TIMEOUT = 0,\n    /**\n     * The new webpage loading navigation response timed out.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    NAVIGATION_COMMIT_TIMEOUT = 1\n}\n/**\n * Encompassed message information as parameters to {@link onFileSelectorShow} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Encompassed message information as parameters to {@link onFileSelectorShow} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class FileSelectorParam {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Gets the title of this file selector.\n     * @returns { string } Return the title of this file selector.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Gets the title of this file selector.\n     * @returns { string } Return the title of this file selector.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getTitle(): string;\n    /**\n     * Gets the FileSelectorMode of this file selector.\n     * @returns { FileSelectorMode } Return the FileSelectorMode of this file selector.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Gets the FileSelectorMode of this file selector.\n     * @returns { FileSelectorMode } Return the FileSelectorMode of this file selector.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getMode(): FileSelectorMode;\n    /**\n     * Gets an array of acceptable MIME type.\n     * @returns { Array<string> } Return an array of acceptable MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Gets an array of acceptable MIME type.\n     * @returns { Array<string> } Return an array of acceptable MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getAcceptType(): Array<string>;\n    /**\n     * Gets whether this file selector use a live media captured value.\n     *\n     * @returns { boolean } Return {@code true} if captured media; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Gets whether this file selector use a live media captured value.\n     *\n     * @returns { boolean } Return {@code true} if captured media; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    isCapture(): boolean;\n    /**\n     * Gets an array of raw acceptable MIME type.\n     * @returns { Array<string> } Return an array of raw acceptable MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 18\n     */\n    getMimeTypes(): Array<string>;\n}\n/**\n * Defines the js result.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the js result.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class JsResult {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Handle the user's JavaScript result if cancel the dialog.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Handle the user's JavaScript result if cancel the dialog.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    handleCancel(): void;\n    /**\n     * Handle the user's JavaScript result if confirm the dialog.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Handle the user's JavaScript result if confirm the dialog.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    handleConfirm(): void;\n    /**\n     * Handle the user's JavaScript result if confirm the prompt dialog.\n     *\n     * @param { string } result\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Handle the user's JavaScript result if confirm the prompt dialog.\n     *\n     * @param { string } result - The content of the dialog box entered by the user.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    handlePromptConfirm(result: string): void;\n}\n/**\n * Defines the file selector result, related to {@link onFileSelectorShow} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the file selector result, related to {@link onFileSelectorShow} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class FileSelectorResult {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * select a list of files.\n     *\n     * @param { Array<string> } fileList\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * select a list of files.\n     *\n     * @param { Array<string> } fileList - List of files that need to be operated.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    handleFileList(fileList: Array<string>): void;\n}\n/**\n * Defines the http auth request result, related to {@link onHttpAuthRequest} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the http auth request result, related to {@link onHttpAuthRequest} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class HttpAuthHandler {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * confirm.\n     *\n     * @param { string } userName\n     * @param { string } password\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * confirm.\n     *\n     * @param { string } userName\n     * @param { string } password\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    confirm(userName: string, password: string): boolean;\n    /**\n     * cancel.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * cancel.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    cancel(): void;\n    /**\n     * isHttpAuthInfoSaved.\n     *\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * isHttpAuthInfoSaved.\n     *\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    isHttpAuthInfoSaved(): boolean;\n}\n/**\n * Defines the ssl error request result, related to {@link onSslErrorEventReceive} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the ssl error request result, related to {@link onSslErrorEventReceive} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class SslErrorHandler {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Confirm to use the SSL certificate.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Confirm to use the SSL certificate.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    handleConfirm(): void;\n    /**\n     * Cancel this request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Cancel this request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    handleCancel(): void;\n}\n/**\n * Defines the client certificate request result, related to {@link onClientAuthenticationRequest} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the client certificate request result, related to {@link onClientAuthenticationRequest} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class ClientAuthenticationHandler {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Confirm to use the specified private key and client certificate chain.\n     *\n     * @param { string } priKeyFile - The file that store private key.\n     * @param { string } certChainFile - The file that store client certificate chain.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Confirm to use the specified private key and client certificate chain.\n     *\n     * @param { string } priKeyFile - The file that store private key.\n     * @param { string } certChainFile - The file that store client certificate chain.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    confirm(priKeyFile: string, certChainFile: string): void;\n    /**\n     * Confirm to use the authUri.The authUri can be obtained from certificate management.\n     *\n     * @param { string } authUri is the key of credentials.The credentials contain sign info and client certificates info.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Confirm to use the authUri.The authUri can be obtained from certificate management.\n     *\n     * @param { string } authUri is the key of credentials.The credentials contain sign info and client certificates info.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    confirm(authUri: string): void;\n    /**\n     * Cancel this certificate request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Cancel this certificate request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    cancel(): void;\n    /**\n     * Ignore this certificate request temporarily.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Ignore this certificate request temporarily.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    ignore(): void;\n}\n/**\n * Defines the accessible resource type, related to {@link onPermissionRequest} method.\n *\n * @enum { string }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the accessible resource type, related to {@link onPermissionRequest} method.\n *\n * @enum { string }\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare enum ProtectedResourceType {\n    /**\n     * The MidiSysex resource.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The MidiSysex resource. Currently, only permission events can be reported. MIDI devices are not yet supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    MidiSysex = 'TYPE_MIDI_SYSEX',\n    /**\n     * The video capture resource, such as camera.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * The video capture resource, such as camera.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    VIDEO_CAPTURE = 'TYPE_VIDEO_CAPTURE',\n    /**\n     * The audio capture resource, such as microphone.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * The audio capture resource, such as microphone.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    AUDIO_CAPTURE = 'TYPE_AUDIO_CAPTURE',\n    /**\n     * The sensor resource, such as accelerometer.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    SENSOR = 'TYPE_SENSOR'\n}\n/**\n * Defines the onPermissionRequest callback, related to {@link onPermissionRequest} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Implements the PermissionRequest object, related to {@link onPermissionRequest} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class PermissionRequest {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Reject the request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Reject the request.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    deny(): void;\n    /**\n     * Gets the source if the webpage that attempted to access the restricted resource.\n     *\n     * @returns { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Gets the source if the webpage that attempted to access the restricted resource.\n     *\n     * @returns { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getOrigin(): string;\n    /**\n     * Gets the resource that the webpage is trying to access.\n     *\n     * @returns { Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Obtains the list of accessible resources requested for the web page.\n     *\n     * @returns { Array<string> } List of accessible resources requested by the web page.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getAccessibleResource(): Array<string>;\n    /**\n     * Grant origin access to a given resource.\n     *\n     * @param { Array<string> } resources\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Grant origin access to a given resource.\n     *\n     * @param { Array<string> } resources\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    grant(resources: Array<string>): void;\n}\n/**\n * Defines the onScreenCapture callback, related to {@link onScreenCapture} method.\n * @syscap SystemCapability.Web.Webview.Core\n * @since 10\n */\n/**\n * Defines the onScreenCapture callback, related to {@link onScreenCapture} method.\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class ScreenCaptureHandler {\n    /**\n     * Constructor.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Constructor.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Gets the source of the webpage that attempted to access the restricted resource.\n     *\n     * @returns { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Obtains the origin of this web page.\n     *\n     * @returns { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getOrigin(): string;\n    /**\n     * Grant origin access to a given resource.\n     * @param { ScreenCaptureConfig } config The screen capture configuration.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Grants the screen capture permission.\n     * @param { ScreenCaptureConfig } config The screen capture configuration.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    grant(config: ScreenCaptureConfig): void;\n    /**\n     * Reject the request.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Rejects this screen capture request.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    deny(): void;\n}\n/**\n * Defines the onDataResubmission callback, related to {@link onDataResubmission} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the onDataResubmission callback, related to {@link onDataResubmission} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class DataResubmissionHandler {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Resend related form data.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Resend related form data.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    resend(): void;\n    /**\n     * Do not resend related form data.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Do not resend related form data.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    cancel(): void;\n}\n/**\n * Defines the onWindowNew callback, related to {@link onWindowNew} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the onWindowNew callback, related to {@link onWindowNew} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class ControllerHandler {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Set WebController object.\n     *\n     * @param { WebviewController } controller\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Set WebController object.\n     * Set to null if you don't need to open a new window.\n     * @param { WebviewController } controller\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    setWebController(controller: WebviewController): void;\n}\n/**\n * Defines the context menu source type, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the context menu source type, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum ContextMenuSourceType {\n    /**\n     * Other source types.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Other source types.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    None = 0,\n    /**\n     * Mouse.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Mouse.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Mouse = 1,\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    LongPress = 2\n}\n/**\n * Defines the context menu media type, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the context menu media type, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum ContextMenuMediaType {\n    /**\n     * Not a special node or other media types.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Not a special node or other media types.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    None = 0,\n    /**\n     * Image.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Image.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Image = 1\n}\n/**\n * Defines the context menu input field type, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the context menu input field type, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum ContextMenuInputFieldType {\n    /**\n     * Not an input field.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Not an input field.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    None = 0,\n    /**\n     * The plain text type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The plain text type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    PlainText = 1,\n    /**\n     * The password type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The password type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Password = 2,\n    /**\n     * The number type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The number type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Number = 3,\n    /**\n     * The telephone type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * The telephone type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Telephone = 4,\n    /**\n     * Other types.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Other types.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    Other = 5\n}\n/**\n * Defines the lifecycle of the same-layer tag.\n * When the same-layer tag exists on the loaded page,\n * CREATE is triggered. When the same-layer tag is moved or is enlarged,\n * **UPDATE **is triggered. When the page exits, DESTROY is triggered.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum NativeEmbedStatus {\n    /**\n     * The same-layer tag is created.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    CREATE = 0,\n    /**\n     * The same-layer tag is updated.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    UPDATE = 1,\n    /**\n     *The same-layer tag is destroyed.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    DESTROY = 2,\n    /**\n     * The same-layer tag enters the BFCache.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    ENTER_BFCACHE = 3,\n    /**\n     * The same-layer tag leaves the BFCache.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    LEAVE_BFCACHE = 4\n}\n/**\n * Defines the context menu supported event bit flags, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the context menu supported event bit flags, related to {@link onContextMenuShow} method.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum ContextMenuEditStateFlags {\n    /**\n     * Not editable.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Not editable.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    NONE = 0,\n    /**\n     * Clipping is supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Clipping is supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    CAN_CUT = 1 << 0,\n    /**\n     * Copies are supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Copies are supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    CAN_COPY = 1 << 1,\n    /**\n     * Support for pasting.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Pasting is supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    CAN_PASTE = 1 << 2,\n    /**\n     * Select all is supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Select all is supported.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    CAN_SELECT_ALL = 1 << 3\n}\n/**\n * Enum type supplied to {@link navigationType} for the navigation's type.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare enum WebNavigationType {\n    /**\n     * Unknown type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    UNKNOWN = 0,\n    /**\n     * A new entry was created due to a navigation happened on the main frame.\n     * Contains all situations that will generate a mainframe navigation entry,\n     * which means that navigations to a hash on the same document or history.pushState\n     * also belong to this type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    MAIN_FRAME_NEW_ENTRY = 1,\n    /**\n     * Navigate to an existing entry due to a navigation on the main frame.\n     * e.g.\n     *   1. History navigations.\n     *   2. Reloads (contains loading the same url).\n     *   3. Same-document navigations(history.replaceState(), location.replace()).\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    MAIN_FRAME_EXISTING_ENTRY = 2,\n    /**\n     * A navigation happened on subframe which was triggered by user.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    NAVIGATION_TYPE_NEW_SUBFRAME = 4,\n    /**\n     * A navigation happened on the subframe automatically.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    NAVIGATION_TYPE_AUTO_SUBFRAME = 5\n}\n/**\n * Enumerates the rendering mode of Web components. By default, the asynchronous rendering mode is used.\n * The asynchronous rendering mode is recommended because it has better performance and lower power consumption.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare enum RenderMode {\n    /**\n     * The Web component is rendered asynchronously.\n     * The ArkWeb component as a graphic surface node is displayed independently.\n     * The maximum width of the Web component is 7,680 px (physical pixel).\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    ASYNC_RENDER = 0,\n    /**\n     * The Web component is rendered synchronously.\n     * The ArkWeb component as a graphic canvas node is displayed together with the system component.\n     * The maximum width of the Web component is 500,000 px (physical pixel).\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    SYNC_RENDER = 1\n}\n/**\n * Defines the viewport-fit type, related to {@link ViewportFit}.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare enum ViewportFit {\n    /**\n     * No effect - the whole web page is viewable(default)\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    AUTO = 0,\n    /**\n     * The initial layout viewport and the visual viewport are set to the\n     * largest rectangle which is inscribe in the display of the device.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    CONTAINS = 1,\n    /**\n     * The initial layout viewport and the visual viewport are set to the\n     * circumscribe rectangle of the physical screen of the device.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    COVER = 2\n}\n/**\n * Defines the context menu param, related to {@link WebContextMenuParam} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the context menu param, related to {@link WebContextMenuParam} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class WebContextMenuParam {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Horizontal offset coordinates of the menu within the Web component.\n     *\n     * @returns { number } The context menu x coordinate.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Horizontal offset coordinates of the menu within the Web component.\n     *\n     * @returns { number } The context menu x coordinate.\n     *                     Returns a non-negative integer if normal, otherwise returns -1.\n     *                     Unit: vp.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    x(): number;\n    /**\n     * Vertical offset coordinates for the menu within the Web component.\n     *\n     * @returns { number } The context menu y coordinate.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Vertical offset coordinates for the menu within the Web component.\n     *\n     * @returns { number } The context menu y coordinate.\n     *                     Returns a non-negative integer if normal, otherwise returns -1.\n     *                     Unit: vp.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    y(): number;\n    /**\n     * If the long-press location is the link returns the link's security-checked URL.\n     *\n     * @returns { string } If relate to a link return link url, else return null.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * If the long-press location is the link returns the link's security-checked URL.\n     *\n     * @returns { string } If relate to a link return link url, else return null.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getLinkUrl(): string;\n    /**\n     * If the long-press location is the link returns the link's original URL.\n     *\n     * @returns { string } If relate to a link return unfiltered link url, else return null.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * If the long-press location is the link returns the link's original URL.\n     *\n     * @returns { string } If relate to a link return unfiltered link url, else return null.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getUnfilteredLinkUrl(): string;\n    /**\n     * Returns the SRC URL if the selected element has a SRC attribute.\n     *\n     * @returns { string } If this context menu is \"src\" attribute, return link url, else return null.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns the SRC URL if the selected element has a SRC attribute.\n     *\n     * @returns { string } If this context menu is \"src\" attribute, return link url, else return null.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getSourceUrl(): string;\n    /**\n     * Long press menu location has image content.\n     *\n     * @returns { boolean } Return whether this context menu has image content.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Long press menu location has image content.\n     *\n     * @returns { boolean } Return whether this context menu has image content.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    existsImageContents(): boolean;\n    /**\n     * Returns the type of context node.\n     *\n     * @returns { ContextMenuMediaType } Returns the type of context node.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns the type of context node.\n     *\n     * @returns { ContextMenuMediaType } Returns the type of context node.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getMediaType(): ContextMenuMediaType;\n    /**\n     * Returns the text of the selection.\n     *\n     * @returns { string } Returns the text of the selection.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns the text of the selection.\n     *\n     * @returns { string } Returns the text of the selection, or return null if no text is selected.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getSelectionText(): string;\n    /**\n     * Returns the context menu source type.\n     *\n     * @returns { ContextMenuSourceType }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns the context menu source type.\n     *\n     * @returns { ContextMenuSourceType }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getSourceType(): ContextMenuSourceType;\n    /**\n     * Returns input field type if the context menu was invoked on an input field.\n     *\n     * @returns { ContextMenuInputFieldType } Input field type if the context menu was invoked on an input field.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns input field type if the context menu was invoked on an input field.\n     *\n     * @returns { ContextMenuInputFieldType } Input field type if the context menu was invoked on an input field.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getInputFieldType(): ContextMenuInputFieldType;\n    /**\n     * Returns whether the context is editable.\n     *\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns whether the context is editable.\n     *\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    isEditable(): boolean;\n    /**\n     * Returns the context editable flags {@link ContextMenuEditStateFlags}.\n     *\n     * @returns { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Returns the context editable flags {@link ContextMenuEditStateFlags}.\n     *\n     * @returns { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    getEditStateFlags(): number;\n    /**\n     * Returns the selection menu preview width.\n     *\n     * @returns { number } The preview menu width.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    getPreviewWidth(): number;\n    /**\n     * Returns the selection menu preview height.\n     *\n     * @returns { number } The preview menu height.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    getPreviewHeight(): number;\n}\n/**\n * Defines the context menu result, related to {@link WebContextMenuResult} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 9\n */\n/**\n * Defines the context menu result, related to {@link WebContextMenuResult} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class WebContextMenuResult {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * When close context menu without other call in WebContextMenuResult,\n     * User should call this function to close menu\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * When close context menu without other call in WebContextMenuResult,\n     * User should call this function to close menu\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    closeContextMenu(): void;\n    /**\n     * If WebContextMenuParam has image content, this function will copy image related to this context menu.\n     * If WebContextMenuParam has no image content, this function will do nothing.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * If WebContextMenuParam has image content, this function will copy image related to this context menu.\n     * If WebContextMenuParam has no image content, this function will do nothing.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    copyImage(): void;\n    /**\n     * Executes the copy operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Executes the copy operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    copy(): void;\n    /**\n     * Executes the paste operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Executes the paste operation related to this context menu.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * Permissions need to be configured: ohos.permission.READ_PASTEBOARD.\n     * </p>\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    paste(): void;\n    /**\n     * Executes the cut operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Executes the cut operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    cut(): void;\n    /**\n     * Executes the selectAll operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Executes the selectAll operation related to this context menu.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    selectAll(): void;\n}\n/**\n * Encompassed message information as parameters to {@link onConsole} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Encompassed message information as parameters to {@link onConsole} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class ConsoleMessage {\n    /**\n     * Constructor.\n     *\n     * @param { string } message - The console message.\n     * @param { string } sourceId - The Web source file's path and name.\n     * @param { number } lineNumber - The line number of the console message.\n     * @param { MessageLevel } messageLevel - The console log level.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.ConsoleMessage#constructor\n     */\n    constructor(message: string, sourceId: string, lineNumber: number, messageLevel: MessageLevel);\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Gets the message of a console message.\n     *\n     * @returns { string } Return the message of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the message of a console message.\n     *\n     * @returns { string } Return the message of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getMessage(): string;\n    /**\n     * Gets the Web source file's path and name of a console message.\n     *\n     * @returns { string } Return the Web source file's path and name of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the Web source file's path and name of a console message.\n     *\n     * @returns { string } Return the Web source file's path and name of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the Web source file's path and name of a console message.\n     *\n     * @returns { string } Return the Web source file's path and name of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getSourceId(): string;\n    /**\n     * Gets the line number of a console message.\n     *\n     * @returns { number } Return the line number of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the line number of a console message.\n     *\n     * @returns { number } Return the line number of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the line number of a console message.\n     *\n     * @returns { number } Return the line number of a console message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getLineNumber(): number;\n    /**\n     * Gets the message level of a console message.\n     *\n     * @returns { MessageLevel } Return the message level of a console message, which can be {@link MessageLevel}.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the message level of a console message.\n     *\n     * @returns { MessageLevel } Return the message level of a console message, which can be {@link MessageLevel}.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getMessageLevel(): MessageLevel;\n}\n/**\n * Encompassed message information as parameters to {@link onConsole} method.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web resource request.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web resource request.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Defines the Web resource request.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class WebResourceRequest {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Gets request headers.\n     *\n     * @returns { Array<Header> } Return the request headers\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets request headers.\n     *\n     * @returns { Array<Header> } Return the request headers\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets request headers.\n     *\n     * @returns { Array<Header> } Return the request headers\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getRequestHeader(): Array<Header>;\n    /**\n     * Gets the request URL.\n     *\n     * @returns { string } Return the request URL.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the request URL.\n     *\n     * @returns { string } Return the request URL.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Gets the request URL.\n     *\n     * @returns { string } Return the request URL.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getRequestUrl(): string;\n    /**\n     * Check whether the request is associated with gesture.\n     *\n     * @returns { boolean } Return {@code true} if the request is associated with gesture;return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Check whether the request is associated with gesture.\n     *\n     * @returns { boolean } Return {@code true} if the request is associated with gesture;return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Check whether the request is associated with gesture.\n     *\n     * @returns { boolean } Return {@code true} if the request is associated with gesture;return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    isRequestGesture(): boolean;\n    /**\n     * Check whether the request is for getting the main frame.\n     *\n     * @returns { boolean } Return {@code true} if the request is associated with gesture for getting the main frame; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Check whether the request is for getting the main frame.\n     *\n     * @returns { boolean } Return {@code true} if the request is associated with gesture for getting the main frame; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Check whether the request is for getting the main frame.\n     *\n     * @returns { boolean } Return {@code true} if the request is associated with gesture for getting the main frame; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    isMainFrame(): boolean;\n    /**\n     * Check whether the request redirects.\n     *\n     * @returns { boolean } Return {@code true} if the request redirects; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Check whether the request redirects.\n     *\n     * @returns { boolean } Return {@code true} if the request redirects; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Check whether the request redirects.\n     *\n     * @returns { boolean } Return {@code true} if the request redirects; return {@code false} otherwise.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    isRedirect(): boolean;\n    /**\n     * Get request method.\n     *\n     * @returns { string } Return the request method.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Get request method.\n     *\n     * @returns { string } Return the request method.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Get request method.\n     *\n     * @returns { string } Return the request method.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getRequestMethod(): string;\n}\n/**\n * Defines the Web resource response.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web resource response.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class WebResourceResponse {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Gets the response data.\n     *\n     * @returns { string } Return the response data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the response data.\n     *\n     * @returns { string } Return the response data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the response data.\n     *\n     * @returns { string } Return the response data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getResponseData(): string;\n    /**\n     * Gets the response data.\n     *\n     * @returns { string | number | ArrayBuffer | Resource | undefined } Return the response data.\n     *                                                                   string type indicate string in HTML format.\n     *                                                                   number type indicate file handle.\n     *                                                                   Resource type indicate $rawfile resource.\n     *                                                                   ArrayBuffer type indicate binary data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    /**\n     * Gets the response data.\n     *\n     * @returns { string | number | ArrayBuffer | Resource | undefined } Return the response data.\n     *                                                                   string type indicate string in HTML format.\n     *                                                                   number type indicate file handle.\n     *                                                                   Resource type indicate $rawfile resource.\n     *                                                                   ArrayBuffer type indicate binary data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 18\n     */\n    getResponseDataEx(): string | number | ArrayBuffer | Resource | undefined;\n    /**\n     * Gets the response encoding.\n     *\n     * @returns { string } Return the response encoding.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the response encoding.\n     *\n     * @returns { string } Return the response encoding.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getResponseEncoding(): string;\n    /**\n     * Gets the response MIME type.\n     *\n     * @returns { string } Return the response MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the response MIME type.\n     *\n     * @returns { string } Return the response MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getResponseMimeType(): string;\n    /**\n     * Gets the reason message.\n     *\n     * @returns { string } Return the reason message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the reason message.\n     *\n     * @returns { string } Return the reason message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the reason message.\n     *\n     * @returns { string } Return the reason message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getReasonMessage(): string;\n    /**\n     * Gets the response headers.\n     *\n     * @returns { Array<Header> } Return the response headers.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the response headers.\n     *\n     * @returns { Array<Header> } Return the response headers.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the response headers.\n     *\n     * @returns { Array<Header> } Return the response headers.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    getResponseHeader(): Array<Header>;\n    /**\n     * Gets the response code.\n     *\n     * @returns { number } Return the response code.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the response code.\n     *\n     * @returns { number } Return the response code.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getResponseCode(): number;\n    /**\n     * Sets the response data.\n     *\n     * @param { string | number | Resource } data - the response data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the response data.\n     *\n     * @param { string | number | Resource } data - the response data.\n     *                                              string type indicate strings in HTML format.\n     *                                              number type indicate file handle.\n     *                                              Resource type indicate $rawfile resource.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Sets the response data.\n     *\n     * @param { string | number | Resource | ArrayBuffer } data - the response data.\n     *                                              string type indicate strings in HTML format.\n     *                                              number type indicate file handle.\n     *                                              Resource type indicate $rawfile resource.\n     *                                              ArrayBuffer type indicate binary data.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    setResponseData(data: string | number | Resource | ArrayBuffer): void;\n    /**\n     * Sets the response encoding.\n     *\n     * @param { string } encoding the response encoding.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the response encoding.\n     *\n     * @param { string } encoding the response encoding.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the response encoding.\n     *\n     * @param { string } encoding the response encoding.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setResponseEncoding(encoding: string): void;\n    /**\n     * Sets the response MIME type.\n     *\n     * @param { string } mimeType the response MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the response MIME type.\n     *\n     * @param { string } mimeType the response MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the response MIME type.\n     *\n     * @param { string } mimeType the response MIME type.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setResponseMimeType(mimeType: string): void;\n    /**\n     * Sets the reason message.\n     *\n     * @param { string } reason the reason message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the reason message.\n     *\n     * @param { string } reason the reason message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the reason message.\n     *\n     * @param { string } reason the reason message.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setReasonMessage(reason: string): void;\n    /**\n     * Sets the response headers.\n     *\n     * @param { Array<Header> } header the response headers.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the response headers.\n     *\n     * @param { Array<Header> } header the response headers.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the response headers.\n     *\n     * @param { Array<Header> } header the response headers.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setResponseHeader(header: Array<Header>): void;\n    /**\n     * Sets the response code.\n     *\n     * @param { number } code the response code.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the response code.\n     *\n     * @param { number } code the response code.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the response code.\n     *\n     * @param { number } code the response code.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setResponseCode(code: number): void;\n    /**\n     * Sets the response is ready or not.\n     *\n     * @param { boolean } IsReady whether the response is ready.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the response is ready or not.\n     *\n     * @param { boolean } IsReady whether the response is ready.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the response is ready or not.\n     *\n     * @param { boolean } IsReady whether the response is ready.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setResponseIsReady(IsReady: boolean): void;\n    /**\n     * Gets whether the response is ready.\n     *\n     * @returns { boolean } True indicates the response data is ready and false is not ready.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    /**\n     * Gets whether the response is ready.\n     *\n     * @returns { boolean } True indicates the response data is ready and false is not ready.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 18\n     */\n    getResponseIsReady(): boolean;\n}\n/**\n * Defines the Web's request/response header.\n *\n * @interface Header\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web's request/response header.\n *\n * @interface Header\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the Web's request/response header.\n *\n * @typedef Header\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\n/**\n * Defines the Web's request/response header.\n *\n * @typedef Header\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare interface Header {\n    /**\n     * Gets the key of the request/response header.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the key of the request/response header.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the key of the request/response header.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    headerKey: string;\n    /**\n     * Gets the value of the request/response header.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the value of the request/response header.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Gets the value of the request/response header.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    headerValue: string;\n}\n/**\n * Defines the Web resource error.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web resource error.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Defines the Web resource error.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class WebResourceError {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Gets the info of the Web resource error.\n     *\n     * @returns { string } Return the info of the Web resource error.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the info of the Web resource error.\n     *\n     * @returns { string } Return the info of the Web resource error.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Gets the info of the Web resource error.\n     *\n     * @returns { string } Return the info of the Web resource error.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getErrorInfo(): string;\n    /**\n     * Gets the code of the Web resource error.\n     *\n     * @returns { number } Return the code of the Web resource error.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Gets the code of the Web resource error.\n     *\n     * @returns { number } Return the code of the Web resource error.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Gets the code of the Web resource error.\n     *\n     * @returns { number } Return the code of the Web resource error.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    getErrorCode(): number;\n}\n/**\n * Defines the js geolocation request.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the js geolocation request.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class JsGeolocation {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Report the geolocation permission status from users.\n     *\n     * @param { string } origin - The origin that ask for the geolocation permission.\n     * @param { boolean } allow - The geolocation permission status.\n     * @param { boolean } retain - Whether to allow the geolocation permission status to be saved to the system.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets the geolocation permission status of a web page.\n     *\n     * @param { string } origin - Index of the origin.\n     * @param { boolean } allow - Geolocation permission status. {@code true} means to allow geolocation permission;\n     *                            {@code false} means to disallow geolocation permission.\n     * @param { boolean } retain - Whether the geolocation permission status can be saved to the system.\n     *                             {@code true} means to allow the geolocation permission status to be saved to\n     *                             the system; {@code false} means to disallow the geolocation permission status to\n     *                             be saved to the system. You can manage the geolocation permissions saved\n     *                             to the system through {@link GeolocationPermissions}.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    invoke(origin: string, allow: boolean, retain: boolean): void;\n}\n/**\n * Defines the Web cookie.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web cookie.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare class WebCookie {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    constructor();\n    /**\n     * Sets the cookie.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebCookieManager#setCookie\n     */\n    setCookie();\n    /**\n     * Saves the cookies.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebCookieManager#saveCookieAsync\n     */\n    saveCookie();\n}\n/**\n * Represents the event consumption result sent to the Web component.\n * For details about the supported events, see TouchType.\n * If the application does not consume the event, set this parameter to false,\n * and the event will be consumed by the Web component. If the application has consumed the event,\n * set this parameter to true, and the event will not be consumed by the Web component.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare class EventResult {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    constructor();\n    /**\n     * Sets the gesture event consumption result.\n     *\n     * @param { boolean } result -  Whether to consume the gesture event.\n     *    {@code true} Indicates the consumption of the gesture event.\n     *    {@code false} Indicates the non-consumption of the gesture event.\n     *    Default value: true.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    setGestureEventResult(result: boolean): void;\n    /**\n     * Sets the gesture event consumption result.\n     *\n     * @param { boolean } result -  Whether to consume the gesture event.\n     *    {@code true} Indicates the consumption of the gesture event.\n     *    {@code false} Indicates the non-consumption of the gesture event.\n     *    Default value: true.\n     * @param { boolean } stopPropagation - Whether to stop propagation.\n     *    This parameter is valid only when result is set to true.\n     *    {@code true} Indicates stops the propagation of events farther along.\n     *    {@code false} Indicates the propagation of events farther along.\n     *    Default value: true.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 14\n     */\n    setGestureEventResult(result: boolean, stopPropagation: boolean): void;\n}\n/**\n * Defines the Web controller.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n * @deprecated since 9\n * @useinstead ohos.web.webview.webview.WebviewController\n */\ndeclare class WebController {\n    /**\n     * Constructor.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     */\n    constructor();\n    /**\n     * Let the Web inactive.\n     * It is no longer maintained since API version 9, and it is recommended to use {@link onInactive} instead.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#onInactive\n     */\n    onInactive(): void;\n    /**\n     * Let the Web active.\n     * It is no longer maintained since API version 9, and it is recommended to use {@link onActive} instead.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#onActive\n     */\n    onActive(): void;\n    /**\n     * Let the Web zoom by.\n     *\n     * @param { number } factor The zoom factor.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#zoom\n     */\n    zoom(factor: number): void;\n    /**\n     * Clears the history in the Web.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#clearHistory\n     */\n    clearHistory(): void;\n    /**\n     * Asynchronously execute JavaScript in the context of the currently displayed page.\n     * The result of the script execution will be returned through an asynchronous callback.\n     * This method must be used on the UI thread, and the callback will also be invoked on the UI thread.\n     * <p><strong>API Note</strong>:<br>\n     * The state of JavaScript is no longer persisted across navigations like loadUrl.\n     * For example, global variables and functions defined before calling loadUrl will not exist in the loaded page.\n     * It is recommended that applications use registerJavaScriptProxy to ensure that the JavaScript state can be persisted across page navigations.\n     * <p>\n     *\n     * @param { object } options The options with a piece of code and a callback.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#runJavaScript\n     */\n    runJavaScript(options: {\n        script: string;\n        callback?: (result: string) => void;\n    });\n    /**\n     * Loads the data or URL.\n     *\n     * @param { object } options The options with the data or URL and other information.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#loadData\n     */\n    loadData(options: {\n        data: string;\n        mimeType: string;\n        encoding: string;\n        baseUrl?: string;\n        historyUrl?: string;\n    });\n    /**\n     * Loads the given URL.\n     *\n     * @param { object } options The options with the URL and other information.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#loadUrl\n     */\n    loadUrl(options: {\n        url: string | Resource;\n        headers?: Array<Header>;\n    });\n    /**\n     * refreshes the current URL.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#refresh\n     */\n    refresh();\n    /**\n     * Stops the current load.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#stop\n     */\n    stop();\n    /**\n     * Registers the JavaScript object and method list.\n     *\n     * @param { object } options - The option with the JavaScript object and method list.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#registerJavaScriptProxy\n     */\n    registerJavaScriptProxy(options: {\n        object: object;\n        name: string;\n        methodList: Array<string>;\n    });\n    /**\n     * Deletes a registered JavaScript object with given name.\n     *\n     * @param { string } name - The name of a registered JavaScript object to be deleted.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#deleteJavaScriptRegister\n     */\n    deleteJavaScriptRegister(name: string);\n    /**\n     * Gets the type of HitTest.\n     *\n     * @returns { HitTestType } The type of HitTest.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#getHitTest\n     */\n    getHitTest(): HitTestType;\n    /**\n     * Gets the request focus.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#requestFocus\n     */\n    requestFocus();\n    /**\n     * Checks whether the web page can go back.\n     *\n     * @returns { boolean } Whether the web page can go back.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#accessBackward\n     */\n    accessBackward(): boolean;\n    /**\n     * Checks whether the web page can go forward.\n     *\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#accessForward\n     */\n    accessForward(): boolean;\n    /**\n     * Checks whether the web page can go back or forward the given number of steps.\n     *\n     * @param { number } step The number of steps.\n     * @returns { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#accessStep\n     */\n    accessStep(step: number): boolean;\n    /**\n     * Goes back in the history of the web page.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#backward\n     */\n    backward();\n    /**\n     * Goes forward in the history of the web page.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.webview.WebviewController#forward\n     */\n    forward();\n    /**\n     * Gets network cookie manager\n     *\n     * @returns { WebCookie }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     * @deprecated since 9\n     * @useinstead ohos.web.webview.WebCookieManager\n     */\n    getCookieManager(): WebCookie;\n}\n/**\n * Defines the Web options.\n *\n * @interface WebOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web options.\n *\n * @interface WebOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Defines the Web options.\n *\n * @interface WebOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the Web options.\n *\n * @typedef WebOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface WebOptions {\n    /**\n     * Sets the address of the web page to be displayed.\n     *\n     * @type { string | Resource }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets the address of the web page to be displayed.\n     *\n     * @type { string | Resource }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Web resource address. If accessing local resource files, please use $rawfile or resource protocol.\n     * If you load a local resource file that applies the sandbox path outside the package (files support html and txt types),\n     * please use the file:// sandbox file path.\n     * Src cannot dynamically change the address through state variables (for example: @State).\n     * If you need to change it, please reload it through {@link loadUrl}.\n     *\n     * @type { string | Resource }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    src: string | Resource;\n    /**\n     * Sets the controller of the Web.\n     *\n     * @type { WebController | WebviewController }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets the controller of the Web.\n     *\n     * @type { WebController | WebviewController }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the controller of the Web.\n     *\n     * @type { WebController | WebviewController }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Controller, through which you can control various behaviors of Web components\n     * (including page navigation, declaring cycle state, JavaScript interaction and other behaviors).\n     * Since API Version 9, WebController is no longer maintained, so it is recommended to use WebviewController instead.\n     * @type { WebController | WebviewController }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    controller: WebController | WebviewController;\n    /**\n     * \tRendering mode.\n     * \tRenderMode.ASYNC_RENDER (default, cannot be dynamically adjusted): The Web component is rendered asynchronously.\n     * \tRenderMode.SYNC_RENDER: The Web component is rendered synchronously within the current execution context.\n     *\n     * @type { ?RenderMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    renderMode?: RenderMode;\n    /**\n     * Sets the incognito mode of the Web, the parameter is optional and default value is false.\n     * When the Web is in incognito mode, cookies, records of websites, geolocation permissions\n     * will not save in persistent files.\n     *\n     * @type { ?boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n      * Sets the incognito mode of the Web, the parameter is optional and default value is false.\n      * When the Web is in incognito mode, cookies, records of websites, geolocation permissions\n      * will not save in persistent files.\n      *\n      * @type { ?boolean }\n      * @syscap SystemCapability.Web.Webview.Core\n      * @crossplatform\n      * @atomicservice\n      * @since 18\n      */\n    incognitoMode?: boolean;\n    /**\n     * A token indicating that the current Web component specifies a shared rendering process.\n     * In the multi-rendering process mode, Web components with the same token will preferentially try to reuse\n     * the rendering process bound to the token.\n     * The binding of token to the rendering process occurs in the initialization stage of the rendering process.\n     * When the rendering process has no associated Web component, its binding relationship with token will be removed.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    sharedRenderProcessToken?: string;\n}\n/**\n * Defines the contents of the JavaScript to be injected.\n *\n * @interface ScriptItem\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the contents of the JavaScript to be injected.\n *\n * @typedef ScriptItem\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface ScriptItem {\n    /**\n     * Sets the JavaScript to be injected.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    script: string;\n    /**\n     * Sets the rules of the JavaScript.\n     *\n     * @type { Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    scriptRules: Array<string>;\n}\n/**\n * Defines the load committed details.\n *\n * @interface LoadCommittedDetails\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the load committed details.\n *\n * @typedef LoadCommittedDetails\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface LoadCommittedDetails {\n    /**\n     * Check whether the request is for getting the main frame.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    isMainFrame: boolean;\n    /**\n     * Whether the navigation happened without changing document. Examples of\n     * same document navigations are:\n     *   1. reference fragment navigations.\n     *   2. pushState/replaceState.\n     *   3. same page history navigation\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    isSameDocument: boolean;\n    /**\n     * True if the committed entry has replaced the existing one. Note that in\n     * case of subframes, the NavigationEntry and FrameNavigationEntry objects\n     * don't actually get replaced - they're reused, but with updated attributes.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    didReplaceEntry: boolean;\n    /**\n     * The type of the navigation.\n     *\n     * @type { WebNavigationType }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    navigationType: WebNavigationType;\n    /**\n     * The url to navigate.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    url: string;\n}\n/**\n * Defines the Intelligent Tracking Prevention details.\n *\n * @typedef IntelligentTrackingPreventionDetails\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface IntelligentTrackingPreventionDetails {\n    /**\n     * The host of website url.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    host: string;\n    /**\n     * The host of tracker url.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    trackerHost: string;\n}\n/**\n * Defines the Web interface.\n *\n * @interface WebInterface\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web interface.\n *\n * @interface WebInterface\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Defines the Web interface.\n *\n * @interface WebInterface\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the Web interface.\n *\n * @typedef WebInterface\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ninterface WebInterface {\n    /**\n     * Sets Value.\n     *\n     * @param { WebOptions } value\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets Value.\n     *\n     * @param { WebOptions } value\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Sets Value.\n     *\n     * @param { WebOptions } value\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    (value: WebOptions): WebAttribute;\n}\n/**\n * Defines the embed info.\n *\n * @interface NativeEmbedInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the embed info.\n *\n * @typedef NativeEmbedInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface NativeEmbedInfo {\n    /**\n     * The embed id.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    id?: string;\n    /**\n     * Only when enableEmbedMode is true and type is marked as native/xxx will be recognized as a same layer component.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    type?: string;\n    /**\n     * The embed tag src.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    src?: string;\n    /**\n     * The coordinate position of embed element relative to the webComponent.\n     *\n     * @type { ?Position }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    position?: Position;\n    /**\n     * The embed tag width.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    width?: number;\n    /**\n     * The embed tag height.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    height?: number;\n    /**\n     * The embed tag url.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    url?: string;\n    /**\n     * The embed tag name.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    tag?: string;\n    /**\n     * The embed param list information used by object tag.\n     *\n     * @type { ?Map<string, string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    params?: Map<string, string>;\n}\n/**\n * Defines the Embed Data info.\n *\n * @interface NativeEmbedDataInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the Embed Data info.\n *\n * @typedef NativeEmbedDataInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface NativeEmbedDataInfo {\n    /**\n     * The embed status.\n     *\n     * @type { ?NativeEmbedStatus }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    status?: NativeEmbedStatus;\n    /**\n     * The surface id.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    surfaceId?: string;\n    /**\n     * The embed id.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    embedId?: string;\n    /**\n     * The embed info.\n     *\n     * @type { ?NativeEmbedInfo }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    info?: NativeEmbedInfo;\n}\n/**\n * Defines the Embed Visibility info.\n *\n * @typedef NativeEmbedVisibilityInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @since 12\n */\ndeclare interface NativeEmbedVisibilityInfo {\n    /**\n     * The embed visibility.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    visibility: boolean;\n    /**\n     * The embed id.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    embedId: string;\n}\n/**\n * Defines the user touch info.\n *\n * @interface NativeEmbedTouchInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\n/**\n * Defines the user touch info.\n *\n * @typedef NativeEmbedTouchInfo\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface NativeEmbedTouchInfo {\n    /**\n     * The native embed id.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    embedId?: string;\n    /**\n     * An event sent when the state of contacts with a touch-sensitive surface changes.\n     *\n     * @type { ?TouchEvent }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    touchEvent?: TouchEvent;\n    /**\n     * Handle the user's touch result.\n     *\n     * @type { ?EventResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    result?: EventResult;\n}\n/**\n * Defines the first content paint rendering of web page.\n *\n * @typedef FirstMeaningfulPaint\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface FirstMeaningfulPaint {\n    /**\n     * Start time of navigation.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    navigationStartTime?: number;\n    /**\n     * Paint time of first meaningful content.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    firstMeaningfulPaintTime?: number;\n}\n/**\n * Defines the largest content paint rendering of web page.\n *\n * @typedef LargestContentfulPaint\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface LargestContentfulPaint {\n    /**\n     *  Start time of navigation.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    navigationStartTime?: number;\n    /**\n     * Paint time of largest image.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    largestImagePaintTime?: number;\n    /**\n     * Paint time of largest text.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    largestTextPaintTime?: number;\n    /**\n     * Bits per pixel of image.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    imageBPP?: number;\n    /**\n     * Load start time of largest image.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    largestImageLoadStartTime?: number;\n    /**\n     * Load end time of largest image.\n     *\n     * @type { ?number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    largestImageLoadEndTime?: number;\n}\n/**\n * Defines the render process not responding info.\n *\n * @interface RenderProcessNotRespondingData\n * @syscap SystemCapability.Web.Webview.Core\n * @since 12\n */\ndeclare interface RenderProcessNotRespondingData {\n    /**\n     * JavaScript stack info of the webpage when render process not responding.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    jsStack: string;\n    /**\n     * Process id of render process not responding.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    pid: number;\n    /**\n     * Reason for the render process not responding.\n     *\n     * @type { RenderProcessNotRespondingReason }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    reason: RenderProcessNotRespondingReason;\n}\n/**\n * Defines the triggered function at the end of web page loading.\n *\n * @typedef OnPageEndEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnPageEndEvent {\n    /**\n     * The url of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n}\n/**\n * Defines the triggered function at the begin of web page loading.\n *\n * @typedef OnPageBeginEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnPageBeginEvent {\n    /**\n     * The url of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n}\n/**\n * Defines the triggered function when the page loading progress changes.\n *\n * @typedef OnProgressChangeEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnProgressChangeEvent {\n    /**\n     * The new progress of the page.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    newProgress: number;\n}\n/**\n * Defines the triggered function when the title of the main application document changes.\n *\n * @typedef OnTitleReceiveEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnTitleReceiveEvent {\n    /**\n     * The title of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    title: string;\n}\n/**\n * Defines the triggered function when requesting to show the geolocation permission.\n *\n * @typedef OnGeolocationShowEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnGeolocationShowEvent {\n    /**\n     * Origin of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    origin: string;\n    /**\n     * Defines the js geolocation request.\n     *\n     * @type { JsGeolocation }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    geolocation: JsGeolocation;\n}\n/**\n * Defines the triggered function when the web page wants to display a JavaScript alert() dialog.\n *\n * @typedef OnAlertEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnAlertEvent {\n    /**\n     * The url of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * The message of alert dialog.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    message: string;\n    /**\n     *  Handle the user's JavaScript result.\n     *\n     * @type { JsResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    result: JsResult;\n}\n/**\n * Defines the triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload.\n *\n * @typedef OnBeforeUnloadEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\n/**\n * Defines the triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload.\n *\n * @typedef OnBeforeUnloadEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare interface OnBeforeUnloadEvent {\n    /**\n     * The url of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The url of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    url: string;\n    /**\n     * The message of confirm dialog.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The message of confirm dialog.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    message: string;\n    /**\n     *  Handle the user's JavaScript result.\n     *\n     * @type { JsResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     *  Handle the user's JavaScript result.\n     *\n     * @type { JsResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    result: JsResult;\n}\n/**\n * Defines the triggered function when the web page wants to display a JavaScript confirm() dialog.\n *\n * @typedef OnConfirmEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnConfirmEvent {\n    /**\n     * The url of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * The message of confirm dialog.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    message: string;\n    /**\n     *  Handle the user's JavaScript result.\n     *\n     * @type { JsResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    result: JsResult;\n}\n/**\n * Defines the triggered function when the web page wants to display a JavaScript prompt() dialog.\n *\n * @typedef OnPromptEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnPromptEvent {\n    /**\n     * The url of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * The message of prompt dialog.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    message: string;\n    /**\n     * The value of prompt dialog.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    value: string;\n    /**\n     *  Handle the user's JavaScript result.\n     *\n     * @type { JsResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    result: JsResult;\n}\n/**\n * Defines the triggered function when the web page receives a JavaScript console message.\n *\n * @typedef OnConsoleEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnConsoleEvent {\n    /**\n     * Console message information of the event.\n     *\n     * @type { ConsoleMessage }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    message: ConsoleMessage;\n}\n/**\n * Defines the triggered function when the web page receives a web resource loading error.\n *\n * @typedef OnErrorReceiveEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnErrorReceiveEvent {\n    /**\n     * The information of request.\n     *\n     * @type { WebResourceRequest }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    request: WebResourceRequest;\n    /**\n     * The information of error.\n     *\n     * @type { WebResourceError }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    error: WebResourceError;\n}\n/**\n * Defines the triggered function when the web page receives a web resource loading HTTP error.\n *\n * @typedef OnHttpErrorReceiveEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnHttpErrorReceiveEvent {\n    /**\n     * The information of request.\n     *\n     * @type { WebResourceRequest }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    request: WebResourceRequest;\n    /**\n     *  Web resource response of event.\n     *\n     * @type { WebResourceResponse }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    response: WebResourceResponse;\n}\n/**\n * Defines the triggered function when starting to download.\n *\n * @typedef OnDownloadStartEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnDownloadStartEvent {\n    /**\n     * The URL of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * The userAgent of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    userAgent: string;\n    /**\n     * The contentDisposition of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * The contentDisposition of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    contentDisposition: string;\n    /**\n     * The mimetype of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    mimetype: string;\n    /**\n     * The contentLength of page.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    contentLength: number;\n}\n/**\n * Defines the triggered callback when the Web page refreshes accessed history.\n *\n * @typedef OnRefreshAccessedHistoryEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\n/**\n * Defines the triggered callback when the Web page refreshes accessed history.\n *\n * @typedef OnRefreshAccessedHistoryEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 18\n */\ndeclare interface OnRefreshAccessedHistoryEvent {\n    /**\n     * URL of the visit.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * URL of the visit.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    url: string;\n    /**\n     * If true, the page is being reloaded, otherwise,  means that the page is newly loaded.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * If true, the page is being reloaded, otherwise,  means that the page is newly loaded.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    isRefreshed: boolean;\n}\n/**\n * Defines the triggered when the render process exits.\n *\n * @typedef OnRenderExitedEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnRenderExitedEvent {\n    /**\n     * The specific reason why the rendering process exits abnormally.\n     *\n     * @type { RenderExitReason }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    renderExitReason: RenderExitReason;\n}\n/**\n * Defines the triggered when the file selector shows.\n *\n * @typedef OnShowFileSelectorEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnShowFileSelectorEvent {\n    /**\n     * Defines the file selector result.\n     *\n     * @type { FileSelectorResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    result: FileSelectorResult;\n    /**\n     * Encompassed message information as parameters to fileSelector.\n     *\n     * @type { FileSelectorParam }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    fileSelector: FileSelectorParam;\n}\n/**\n * Defines the triggered when the url loading.\n *\n * @typedef OnResourceLoadEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnResourceLoadEvent {\n    /**\n     * The URL of the loaded resource file.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n}\n/**\n * Defines the triggered when the scale of WebView changed.\n *\n * @typedef OnScaleChangeEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnScaleChangeEvent {\n    /**\n     * Old scale of the page.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    oldScale: number;\n    /**\n     * New scale of the page.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    newScale: number;\n}\n/**\n * Defines the triggered when the browser needs credentials from the user.\n *\n * @typedef OnHttpAuthRequestEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnHttpAuthRequestEvent {\n    /**\n     * Defines the http auth request result.\n     *\n     * @type { HttpAuthHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    handler: HttpAuthHandler;\n    /**\n     * Host of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    host: string;\n    /**\n     * realm of the page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    realm: string;\n}\n/**\n * Defines the triggered callback when the resources loading is intercepted.\n *\n * @typedef OnInterceptRequestEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnInterceptRequestEvent {\n    /**\n     * The information of request.\n     *\n     * @type { WebResourceRequest }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    request: WebResourceRequest;\n}\n/**\n * Defines the triggered callback when the host application that web content from the specified origin is\n *     attempting to access the resources.\n *\n * @typedef OnPermissionRequestEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnPermissionRequestEvent {\n    /**\n     * Defines the onPermissionRequest callback.\n     *\n     * @type { PermissionRequest }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    request: PermissionRequest;\n}\n/**\n * Defines the triggered callback when the host application that web content from the specified origin is\n *     requesting to capture screen.\n *\n * @typedef OnScreenCaptureRequestEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnScreenCaptureRequestEvent {\n    /**\n     * Notifies the user of the operation behavior of the web component.\n     *\n     * @type { ScreenCaptureHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    handler: ScreenCaptureHandler;\n}\n/**\n * Defines the triggered callback when called to allow custom display of the context menu.\n *\n * @typedef OnContextMenuShowEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnContextMenuShowEvent {\n    /**\n     * The menu-related parameters.\n     *\n     * @type { WebContextMenuParam }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    param: WebContextMenuParam;\n    /**\n     * The menu corresponding event is passed to the kernel.\n     *\n     * @type { WebContextMenuResult }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    result: WebContextMenuResult;\n}\n/**\n * Defines function Triggered when the host application call searchAllAsync.\n *\n * @typedef OnSearchResultReceiveEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnSearchResultReceiveEvent {\n    /**\n     * The ordinal number of the currently matched lookup item (starting from 0).\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    activeMatchOrdinal: number;\n    /**\n     * The number of all matched keywords.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    numberOfMatches: number;\n    /**\n     * Indicates whether the current in-page search operation is complete. The method may be called back multiple times until isDoneCounting is true.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    isDoneCounting: boolean;\n}\n/**\n * Defines function Triggered when the scroll bar slides to the specified position.\n *\n * @typedef OnScrollEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnScrollEvent {\n    /**\n     * The X offset of the scroll.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    xOffset: number;\n    /**\n     * The Y offset of the scroll.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    yOffset: number;\n}\n/**\n * Defines the triggered callback when the Web page receives an ssl Error.\n *\n * @typedef OnSslErrorEventReceiveEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnSslErrorEventReceiveEvent {\n    /**\n     * Notifies the user of the operation behavior of the web component.\n     *\n     * @type { SslErrorHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    handler: SslErrorHandler;\n    /**\n     * Error codes.\n     *\n     * @type { SslError }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    error: SslError;\n    /**\n     * Certificate chain data in DER format.\n     *\n     * @type { ?Array<Uint8Array> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    certChainData?: Array<Uint8Array>;\n}\n/**\n * Defines the triggered callback when needs ssl client certificate from the user.\n *\n * @typedef OnClientAuthenticationEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnClientAuthenticationEvent {\n    /**\n     * Notifies the user of the operation behavior of the web component.\n     *\n     * @type { ClientAuthenticationHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    handler: ClientAuthenticationHandler;\n    /**\n     * The hostname of the requesting certificate server.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    host: string;\n    /**\n     * The port number of the request certificate server.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    port: number;\n    /**\n     * Acceptable asymmetric key types.\n     *\n     * @type { Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    keyTypes: Array<string>;\n    /**\n     * Certificates that match the private key are acceptable to the issuer.\n     *\n     * @type { Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    issuers: Array<string>;\n}\n/**\n * Defines the triggered callback when web page requires the user to create a window.\n *\n * @typedef OnWindowNewEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnWindowNewEvent {\n    /**\n     * true indicates the request to create a dialog and false indicates a new tab.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    isAlert: boolean;\n    /**\n     * true indicates that it is triggered by the user, and false indicates that it is triggered by a non-user.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    isUserTrigger: boolean;\n    /**\n     * Destination URL.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    targetUrl: string;\n    /**\n     * Lets you set the WebviewController instance for creating a new window.\n     *\n     * @type { ControllerHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    handler: ControllerHandler;\n}\n/**\n * Defines the triggered callback when the application receive an new url of an apple-touch-icon.\n *\n * @typedef OnTouchIconUrlReceivedEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnTouchIconUrlReceivedEvent {\n    /**\n     * The apple-touch-icon URL address received.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * Corresponding to whether apple-touch-icon is precomposited.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    precomposed: boolean;\n}\n/**\n * Defines the triggered callback when the application receive a new favicon for the current web page.\n *\n * @typedef OnFaviconReceivedEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnFaviconReceivedEvent {\n    /**\n     * Received the Favicon icon for the PixelMap object.\n     *\n     * @type { PixelMap }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    favicon: PixelMap;\n}\n/**\n * Defines the triggered callback when previous page will no longer be drawn and next page begin to draw.\n *\n * @typedef OnPageVisibleEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnPageVisibleEvent {\n    /**\n     * The URL of page.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n}\n/**\n * Defines the triggered callback to decision whether resend form data or not.\n *\n * @typedef OnDataResubmittedEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnDataResubmittedEvent {\n    /**\n     * Form data resubmission handle.\n     *\n     * @type { DataResubmissionHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    handler: DataResubmissionHandler;\n}\n/**\n * Defines the playing state of audio on web page.\n *\n * @typedef OnAudioStateChangedEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnAudioStateChangedEvent {\n    /**\n     * The audio playback status of the current page, true if playing true otherwise false.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    playing: boolean;\n}\n/**\n * Defines triggered when the first content rendering of web page.\n *\n * @typedef OnFirstContentfulPaintEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnFirstContentfulPaintEvent {\n    /**\n     * The time at which navigation begins, expressed in microseconds.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    navigationStartTick: number;\n    /**\n     * The time it takes to draw content for the first time from navigation, expressed in milliseconds.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    firstContentfulPaintMs: number;\n}\n/**\n * Defines the triggered callback when the resources loading is intercepted.\n *\n * @typedef OnLoadInterceptEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 12\n */\ndeclare interface OnLoadInterceptEvent {\n    /**\n     * The information of request.\n     *\n     * @type { WebResourceRequest }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    data: WebResourceRequest;\n}\n/**\n * Defines the function Triggered when the over scrolling.\n *\n * @typedef OnOverScrollEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface OnOverScrollEvent {\n    /**\n     * Based on the leftmost part of the page, the horizontal scroll offset is over.\n     * Unit: vp.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    xOffset: number;\n    /**\n     * Based on the top of the page, the vertical scroll offset is over.\n     * Unit: vp.\n     *\n     * @type { number }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    yOffset: number;\n}\n/**\n * Defines the JavaScript object to be injected.\n *\n * @typedef JavaScriptProxy\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface JavaScriptProxy {\n    /**\n     * Objects participating in registration.\n     *\n     * @type { object }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    object: object;\n    /**\n     * The name of the registered object, which is consistent with the\n     *                          object name called in the window.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    name: string;\n    /**\n     * The method of the application side JavaScript object participating\n     *                                       in the registration.\n     *\n     * @type { Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    methodList: Array<string>;\n    /**\n     * Controller.\n     *\n     * @type { WebController | WebviewController }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    controller: WebController | WebviewController;\n    /**\n     * The async method of the application side JavaScript object participating in the registration.\n     *\n     * @type { ?Array<string> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    asyncMethodList?: Array<string>;\n    /**\n     * permission configuration defining web page URLs that can access JavaScriptProxy methods.\n     * The configuration can be defined at two levels, object level and method level.\n     *\n     * @type { ?string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    permission?: string;\n}\n/**\n * Enum type supplied to {@link keyboardAvoidMode} for setting the web keyboard avoid mode.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare enum WebKeyboardAvoidMode {\n    /**\n     * When the soft keyboard avoids, only the size of the visual viewport is adjusted, not the size of the layout viewport.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    RESIZE_VISUAL = 0,\n    /**\n     * By default, when the soft keyboard avoids,\n     * the sizes of the visual viewport and the layout viewport are adjusted at the same time.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    RESIZE_CONTENT = 1,\n    /**\n     * Without adjusting any viewport size, soft keyboard avoidance will not be triggered.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    OVERLAYS_CONTENT = 2\n}\n/**\n * Defines Web Elements type.\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 13\n */\ndeclare enum WebElementType {\n    /**\n     * Image,corresponding HTML image type.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    IMAGE = 1\n}\n/**\n * ResponseType for contextMenu\n *\n * @enum { number }\n * @syscap SystemCapability.Web.Webview.Core\n * @since 13\n */\ndeclare enum WebResponseType {\n    /**\n     * Long press.\n     *\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    LONG_PRESS = 1\n}\n/**\n * Defines the selection menu options.\n *\n * @typedef SelectionMenuOptionsExt\n * @syscap SystemCapability.Web.Webview.Core\n * @since 13\n */\ndeclare interface SelectionMenuOptionsExt {\n    /**\n     * Callback function when the selection menu appears.\n     *\n     * @type { ?Callback<void> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    onAppear?: Callback<void>;\n    /**\n     * Callback function when the selection menu disappears.\n     *\n     * @type { ?Callback<void> }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    onDisappear?: Callback<void>;\n    /**\n     * The preview content of selection menu.\n     *\n     * @type { ?CustomBuilder }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    preview?: CustomBuilder;\n    /**\n     * Menu type, default value is MenuType.SELECTION_MENU.\n     *\n     * @type { ?MenuType }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    menuType?: MenuType;\n}\n/**\n * Defines the Web attribute functions.\n *\n * @extends CommonMethod<WebAttribute>\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines the Web attribute functions.\n *\n * @extends CommonMethod<WebAttribute>\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Defines the Web attribute functions.\n *\n * @extends CommonMethod<WebAttribute>\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare class WebAttribute extends CommonMethod<WebAttribute> {\n    /**\n     * Sets whether the Web allows JavaScript scripts to execute.\n     *\n     * @param { boolean } javaScriptAccess - {@code true} means the Web can allows JavaScript scripts to execute; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether the Web allows JavaScript scripts to execute.\n     *\n     * @param { boolean } javaScriptAccess - {@code true} means the Web can allows JavaScript scripts to execute; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Sets whether the Web allows JavaScript scripts to execute.\n     *\n     * @param { boolean } javaScriptAccess - {@code true} means the Web can allows JavaScript scripts to execute; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    javaScriptAccess(javaScriptAccess: boolean): WebAttribute;\n    /**\n     * Sets whether enable local file system access in web.\n     *\n     * @param { boolean } fileAccess - {@code true} means enable local file system access in Web; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether enable local file system access in web.\n     *\n     * @param { boolean } fileAccess - {@code true} means enable local file system access in Web; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets whether to enable Access to the file system in the application.\n     * This setting dose not affect the access to the files specified though $rawfile(filepath/filename).\n     * <p><strong>API Note</strong>:<br>\n     * fileAccess is disabled by default since API version 12.\n     * When fileAccess is set to false, files in the read-only /data/storage/el1/bundle/entry/resources/resfile<br>\n     * directory can still be accessed through the file protocol.\n     * </p>\n     *\n     * @param { boolean } fileAccess - {@code true} means enable local file system access in Web; {@code false} otherwise.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    fileAccess(fileAccess: boolean): WebAttribute;\n    /**\n     * Sets whether to allow image resources to be loaded from the network.\n     *\n     * @param { boolean } onlineImageAccess - {@code true} means the Web can allow image resources to be loaded from the network;\n     *    The default value is true.\n     * {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether to enable access to online images through HTTP and HTTPS.\n     *\n     * @param { boolean } onlineImageAccess - Sets whether to enable access to online images.\n     *    {@code true} means means setting to allow loading image resources from the network, {@code false} otherwise.\n     *    Default value: true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets whether to allow image resources to be loaded from the network.\n     *    The default value is true.\n     * @param { boolean } onlineImageAccess - {@code true} means the Web can allow image resources to be loaded from the network;\n     * {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    onlineImageAccess(onlineImageAccess: boolean): WebAttribute;\n    /**\n     * Sets whether to enable the DOM Storage API permission.\n     *\n     * @param { boolean } domStorageAccess - {@code true} means enable the DOM Storage API permission in Web; {@code false} otherwise.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether to enable the DOM Storage API permission.\n     *\n     * @param { boolean } domStorageAccess - {@code true} means enable the DOM Storage API permission in Web; {@code false} otherwise.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets whether to enable the DOM Storage API. By default, this feature is disabled.\n     * @param { boolean } domStorageAccess - Whether to enable the DOM Storage API. {@code true} means to enable\n     *                                       the DOM Storage API; {@code false} means to disable the DOM Storage API.\n     *                                       The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    domStorageAccess(domStorageAccess: boolean): WebAttribute;\n    /**\n     * Sets whether the Web can automatically load image resources.\n     *\n     * @param { boolean } imageAccess - {@code true} means the Web can automatically load image resources; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether the Web can automatically load image resources.\n     *\n     * @param { boolean } imageAccess - {@code true} means the Web can automatically load image resources; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets whether to enable automatic image loading.\n     *\n     * @param { boolean } imageAccess - Sets whether to enable automatic image loading.\n     *    {@code true} means the Web can automatically load image resources, {@code false} otherwise.\n     *    Default value: true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    imageAccess(imageAccess: boolean): WebAttribute;\n    /**\n     * Sets how to load HTTP and HTTPS content.\n     *\n     * @param { MixedMode } mixedMode - The mixed mode, which can be {@link MixedMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets how to load HTTP and HTTPS content.\n     *\n     * @param { MixedMode } mixedMode - The mixed mode, which can be {@link MixedMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n    * Sets the behavior when a secure origin attempts to load a resource from an insecure origin.\n    * The default is MixedMode.None, meaning not allow a secure origin to load content from an insecure origin.\n    *\n    *\n    * @param { MixedMode } mixedMode - The mixed mode, which can be {@link MixedMode}.\n    * @returns { WebAttribute }\n    * @syscap SystemCapability.Web.Webview.Core\n    * @crossplatform\n    * @atomicservice\n    * @since 18\n    */\n    mixedMode(mixedMode: MixedMode): WebAttribute;\n    /**\n     * Sets whether the Web supports zooming using gestures.\n     *\n     * @param { boolean } zoomAccess {@code true} means the Web supports zooming using gestures; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether the Web supports zooming using gestures.\n     *\n     * @param { boolean } zoomAccess {@code true} means the Web supports zooming using gestures; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Sets whether the Web supports zooming using gestures.\n     *\n     * @param { boolean } zoomAccess {@code true} means the Web supports zooming using gestures; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    zoomAccess(zoomAccess: boolean): WebAttribute;\n    /**\n     * Sets whether to allow access to geographical locations.\n     *\n     * @param { boolean } geolocationAccess - {@code true} means the Web allows access to geographical locations; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Set whether to enable geolocation access. By default, this feature is enabled.\n     * For details, see Managing Location Permissions.\n     *\n     * @param { boolean } geolocationAccess - Whether to enable geolocation access. {@code true} means the Web\n     *                                        allows access to geographical locations; {@code false} means the\n     *                                        Web disallows access to geographical locations. The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    geolocationAccess(geolocationAccess: boolean): WebAttribute;\n    /**\n     * Injects the JavaScript object into window and invoke the function in window.\n     *\n     * @param { object } javaScriptProxy - The JavaScript object to be injected.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Injects the JavaScript object into window and invoke the function in window.\n     *\n     * @param { object } javaScriptProxy - The JavaScript object to be injected.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Injects the JavaScript object into window and invoke the function in window.\n     *\n     * @param { object } javaScriptProxy - The JavaScript object to be injected.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Registers the supplied ArkTs object in javaScriptProxy into this Web component.\n     * The object is registered into all frames of the web page, including all frames, using the specified name in javaScriptProxy.\n     * This allows the methods of the ArkTs object in javaScriptProxy to be accessed from JavaScript.\n     *\n     * <p><strong>API Note</strong>:\n     * <strong>Performance Note</strong>:\n     * <p>For details about the arkweb rendering framework adaptation solution,\n     * see [ArkWeb Rendering Framework Adaptation]{@link https://developer.huawei.com/consumer/en/doc/best-practices/bpta-arkweb_rendering_framework}\n     * </p>\n     *\n     * @param { JavaScriptProxy } javaScriptProxy - The ArkTs object in javaScriptProxy will be registered into this Web component,\n     * and the methods within the methodList of the injected ArkTs object declared in javaScriptProxy can be accessed by JavaScript.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    javaScriptProxy(javaScriptProxy: JavaScriptProxy): WebAttribute;\n    /**\n     * Sets whether the Web should save the password.\n     *\n     * @param { boolean } password - {@code true} means the Web can save the password; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 10\n     */\n    password(password: boolean): WebAttribute;\n    /**\n     * Sets the mode of cache in Web.\n     *\n     * @param { CacheMode } cacheMode - The cache mode, which can be {@link CacheMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets the mode of cache in Web.\n     *\n     * @param { CacheMode } cacheMode - The cache mode, which can be {@link CacheMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Sets the mode of cache in Web.\n     *\n     * @param { CacheMode } cacheMode - The cache mode, which can be {@link CacheMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    cacheMode(cacheMode: CacheMode): WebAttribute;\n    /**\n     * Sets the dark mode of Web.\n     *\n     * @param { WebDarkMode } mode - The dark mode, which can be {@link WebDarkMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the web dark mode. By default, web dark mode is disabled. When it is enabled,\n     * the Web component enables the dark theme defined for web pages\n     * if the theme has been defined in prefers-color-scheme of a media query,\n     * and remains unchanged otherwise. To enable the forcible dark mode, use this API with forceDarkAccess.\n     *\n     * @param { WebDarkMode } mode - Web dark mode to set.\n     *     Default value: WebDarkMode.Off.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    darkMode(mode: WebDarkMode): WebAttribute;\n    /**\n     * Sets whether to enable forced dark algorithm when the web is in dark mode\n     *\n     * @param { boolean } access {@code true} means enable the force dark algorithm; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets whether to enable forcible dark mode for the web page.\n     * This API is applicable only when dark mode is enabled in {@link darkMode}.\n     *\n     * @param { boolean } access Sets whether to enable forcible dark mode for the web page.\n     *    {@code true} means enable forcible dark mode for the web page. ;\n     *    {@code false} means not enable forcible dark mode for the web page.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    forceDarkAccess(access: boolean): WebAttribute;\n    /**\n     * Sets the media options.\n     *\n     * @param { WebMediaOptions } options The media options, which can be {@link WebMediaOptions}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Sets the web-based media playback policy, including the validity period for automatically resuming a paused web audio,\n     * and whether the audio of multiple Web instances in an application is exclusive.\n     *\n     * @param { WebMediaOptions } options Set the media policy for the web.\n     * After updating the attribute parameters, the audio needs to be replayed for it to take effect.\n     *    Default value: {resumeInterval: 0, audioExclusive: true}\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    mediaOptions(options: WebMediaOptions): WebAttribute;\n    /**\n     * Sets whether the Web should save the table data.\n     *\n     * @param { boolean } tableData {@code true} means the Web can save the table data; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 10\n     */\n    tableData(tableData: boolean): WebAttribute;\n    /**\n     * Sets whether the Web access meta 'viewport' in HTML.\n     *\n     * @param { boolean } wideViewModeAccess {@code true} means the Web access meta 'viewport' in HTML; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 10\n     */\n    wideViewModeAccess(wideViewModeAccess: boolean): WebAttribute;\n    /**\n     * Sets whether the Web access overview mode.\n     *\n     * @param { boolean } overviewModeAccess {@code true} means the Web access overview mode; {@code false} otherwise.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether to load web pages by using the overview mode, which means reducing the content to fit the screen width.\n     * Currently, only mobile devices are supported.\n     *\n     * @param { boolean } overviewModeAccess Whether to load web pages by using the overview mode.\n     *    {@code true} means the Web access overview mode;\n     *    {@code false} means the Web not access overview mode.\n     *    Default value: true\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    overviewModeAccess(overviewModeAccess: boolean): WebAttribute;\n    /**\n     * Sets the over-scroll mode for web\n     * When the scrolling mode is enabled, when the user slides to the edge on the web root page, the web will bounce back\n     * the interface through elastic animation, and the internal pages on the root page will not trigger the bounce back.\n     *\n     * @param { OverScrollMode } mode - The over-scroll mode, which can be {@link OverScrollMode}.\n     *    The default value is OverScrollMode.NEVER.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    overScrollMode(mode: OverScrollMode): WebAttribute;\n    /**\n     * Sets the blur on for elements on webview when soft keyboard is hidden manually.\n     *\n     * @param { BlurOnKeyboardHideMode } mode - Default value is SILENT. Set BLUR to enable the blur on keyboard hide mode, which can be {@link BlurOnKeyboardHideMode}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    blurOnKeyboardHideMode(mode: BlurOnKeyboardHideMode): WebAttribute;\n    /**\n     * Sets the ratio of the text zoom.\n     *\n     * @param { number } textZoomAtio The ratio of the text zoom.  The default value is 100, ranging from 1 to +∞.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.WebAttribute#textZoomRatio\n     */\n    textZoomAtio(textZoomAtio: number): WebAttribute;\n    /**\n     * Sets the ratio of the text zoom.\n     *\n     * @param { number } textZoomRatio The ratio of the text zoom.  The default value is 100, ranging from 1 to +∞.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the ratio of the text zoom.\n     *\n     * @param { number } textZoomRatio The ratio of the text zoom.  The default value is 100, ranging from 1 to +∞.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    textZoomRatio(textZoomRatio: number): WebAttribute;\n    /**\n     * Sets whether the Web access the database.\n     *\n     * @param { boolean } databaseAccess {@code true} means the Web access the database; {@code false} otherwise.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Sets whether to enable database access. By default, this feature is disabled.\n     *\n     *\n     * @param { boolean } databaseAccess - Whether to enable database access. {@code true} means to enable\n     *                                     database access; {@code false} means to disable database access.\n     *                                     The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    databaseAccess(databaseAccess: boolean): WebAttribute;\n    /**\n     * Sets the initial scale for the Web.\n     *\n     * @param { number } percent the initial scale for the Web.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the initial scale for the Web.\n     *\n     * @param { number } percent the initial scale for the Web.\n     *                           Value range: (0, 1000].\n     *                           Default value: 100.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    initialScale(percent: number): WebAttribute;\n    /**\n     * Sets the Web's user agent.\n     *\n     * @param { string } userAgent The Web's user agent.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 10\n     * @useinstead ohos.web.webview.webview.WebviewController#setCustomUserAgent\n     */\n    userAgent(userAgent: string): WebAttribute;\n    /**\n     * Sets whether the viewport property of the meta tag is enabled.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * If the device is 2-in-1, the viewport property is not supported. This means that,\n     * regardless of whether this parameter is set to true or false,\n     * the viewport property will not be parsed and a default layout will be used.<br>\n     * If the device is a tablet, the viewport-fit property of the meta tag is parsed regardless of\n     * whether this parameter is set to true or false. When viewport-fit is set to cover,\n     * the size of the safe area can be obtained through the CSS attribute.<br>\n     * The viewport parameter of the meta tag on the frontend HTML page is enabled or\n     * disabled based on whether User-Agent contains the Mobile field.\n     * If a User-Agent does not contain the Mobile field, the viewport property in the meta tag is disabled by default.\n     * In this case, you can explicitly set the metaViewport property to true to overwrite the disabled state.\n     * </p>\n     *\n     * @param { boolean } enabled Whether the viewport property of the meta tag is enabled.\n     *    {@code true} means support the viewport attribute of the meta tag,\n     *    the viewport property of the meta tag is not enabled.\n     *    This means that the property will not be parsed and a default layout will be used.;\n     *    {@code false} means not support the viewport attribute of the meta tag,\n     *    the viewport property of the meta tag is enabled.\n     *    This means that the property will be parsed and used for the layout.\n     *    Default value: true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    metaViewport(enabled: boolean): WebAttribute;\n    /**\n     * Triggered at the end of web page loading.\n     * This callback is only invoked for the main frame and not for subframes.\n     *\n     * @param { function } callback The triggered function at the end of web page loading.\n     * @returns { WebAttribute } The WebAttribute object representing the attributes of the web page.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered at the end of web page loading.\n     * This callback is only invoked for the main frame and not for subframes.\n     *\n     * @param { function } callback The triggered function at the end of web page loading.\n     * @returns { WebAttribute } The WebAttribute object representing the attributes of the web page.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Triggered at the end of web page loading.\n     * This callback is only invoked for the main frame and not for subframes.\n     *\n     * @param { function } callback The triggered function at the end of web page loading.\n     * @returns { WebAttribute } The WebAttribute object representing the attributes of the web page.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered at the end of web page loading.\n     * This callback is only invoked for the main frame and not for subframes.\n     *\n     * @param { Callback<OnPageEndEvent> } callback The triggered function at the end of web page loading.\n     * @returns { WebAttribute } The WebAttribute object representing the attributes of the web page.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onPageEnd(callback: Callback<OnPageEndEvent>): WebAttribute;\n    /**\n     * Triggered at the begin of web page loading.\n     *\n     * @param { function } callback The triggered function at the begin of web page loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered at the begin of web page loading.\n     *\n     * @param { function } callback The triggered function at the begin of web page loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Triggered at the begin of web page loading.\n     *\n     * @param { function } callback The triggered function at the begin of web page loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when the web page starts to be loaded.\n     * This API is called only for the main frame, and not for the iframe or frameset content.\n     *\n     * @param { Callback<OnPageBeginEvent> } callback The triggered function at the begin of web page loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onPageBegin(callback: Callback<OnPageBeginEvent>): WebAttribute;\n    /**\n     * Triggered when the page loading progress changes.\n     *\n     * @param { function } callback The triggered function when the page loading progress changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the page loading progress changes.\n     *\n     * @param { function } callback The triggered function when the page loading progress changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the page loading progress changes.\n     *\n     * @param { Callback<OnProgressChangeEvent> } callback The triggered function when the page loading progress changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onProgressChange(callback: Callback<OnProgressChangeEvent>): WebAttribute;\n    /**\n     * Triggered when the title of the main application document changes.\n     *\n     * @param { function } callback The triggered function when the title of the main application document changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the title of the main application document changes.\n     *\n     * @param { function } callback The triggered function when the title of the main application document changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Notifies the application that the title has changed..\n     * If the page being loaded does not specify a title via the <title> element,\n     * ArkWeb will generate a title baseed on the URL and return it to the application.\n     *\n     * @param { Callback<OnTitleReceiveEvent> } callback The triggered function when the title of the main application document changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onTitleReceive(callback: Callback<OnTitleReceiveEvent>): WebAttribute;\n    /**\n     * Triggered when requesting to hide the geolocation.\n     *\n     * @param { function } callback The triggered function when requesting to hide the geolocation permission.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Called to notify the user that the request for obtaining the geolocation information received\n     * when {@link onGeolocationShow} is called has been canceled.\n     *\n     * @param { function } callback - Callback invoked when the request for obtaining geolocation information has been canceled.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    onGeolocationHide(callback: () => void): WebAttribute;\n    /**\n     * Triggered when requesting to show the geolocation permission.\n     *\n     * @param { function } callback The triggered function when requesting to show the geolocation permission.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when requesting to show the geolocation permission.\n     *\n     * @param { function } callback The triggered function when requesting to show the geolocation permission.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when a request to obtain the geolocation information is received.\n     * @param { Callback<OnGeolocationShowEvent> } callback - Callback invoked when a request to obtain the geolocation\n     *                                                        information is received.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onGeolocationShow(callback: Callback<OnGeolocationShowEvent>): WebAttribute;\n    /**\n     * Triggered when the Web gets the focus.\n     *\n     * @param { function } callback The triggered function when the Web gets the focus.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the Web gets the focus.\n     *\n     * @param { function } callback The triggered function when the Web gets the focus.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onRequestSelected(callback: () => void): WebAttribute;\n    /**\n     * Triggered when the Web wants to display a JavaScript alert() dialog.\n     *\n     * @param { function } callback The triggered function when the web page wants to display a JavaScript alert() dialog.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the Web wants to display a JavaScript alert() dialog.\n     *\n     * @param { function } callback The triggered function when the web page wants to display a JavaScript alert() dialog.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the Web wants to display a JavaScript alert() dialog.\n     *\n     * @param {  Callback<OnAlertEvent, boolean> } callback The triggered function when the web page wants to display a JavaScript alert() dialog.\n     *     {@code true} means the application can invoke custom pop-up dialog capabilities (with confirmation and cancellation buttons).\n     *                  Developers need to use the JsResult interface to notify the web component whether to leave the current page\n     *                  according to the user's choice.\n     *     {@code false} means the pop-up processing result is considered as cancelled.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onAlert(callback: Callback<OnAlertEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the Web wants to confirm navigation from JavaScript onbeforeunload.\n     *\n     * @param { function } callback The triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the Web wants to confirm navigation from JavaScript onbeforeunload.\n     *\n     * @param { function } callback The triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the Web wants to confirm navigation from JavaScript onbeforeunload.\n     *\n     * @param { Callback<OnBeforeUnloadEvent, boolean> } callback The triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Triggered when the Web wants to confirm navigation from JavaScript onbeforeunload.\n     *\n     * @param { Callback<OnBeforeUnloadEvent, boolean> } callback The triggered function when the web page wants to confirm navigation from JavaScript onbeforeunload.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    onBeforeUnload(callback: Callback<OnBeforeUnloadEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the web page wants to display a JavaScript confirm() dialog.\n     *\n     * @param { function } callback The Triggered function when the web page wants to display a JavaScript confirm() dialog.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the web page wants to display a JavaScript confirm() dialog.\n     *\n     * @param { function } callback The Triggered function when the web page wants to display a JavaScript confirm() dialog.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web page wants to display a JavaScript confirm() dialog.\n     *\n     * @param { Callback<OnConfirmEvent, boolean> } callback The triggered function when the web page wants to display a JavaScript confirm() dialog.\n     *     {@code true} means the application can call the custom pop-up capability (including confirmation and cancellation), and needs to call JsResult\n     *                  to notify the Web component whether to leave the current page based on the user's confirmation or cancellation operation.\n     *     {@code false} means the custom pop-up drawn in the function is invalid.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onConfirm(callback: Callback<OnConfirmEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the web page wants to display a JavaScript prompt() dialog.\n     *\n     * @param { function } callback The Triggered function when the web page wants to display a JavaScript prompt() dialog.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the web page wants to display a JavaScript prompt() dialog.\n     *\n     * @param { function } callback The Triggered function when the web page wants to display a JavaScript prompt() dialog.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web page wants to display a JavaScript prompt() dialog.\n     *\n     * @param { Callback<OnPromptEvent, boolean> } callback The triggered function when the web page wants to display a JavaScript prompt() dialog.\n     *     {@code true} means the application can call the custom pop-up window capability (including confirmation, cancellation, and input),and needs to\n     *                   call JsResult to notify the Web component of the final processing result based on the user's confirmation or cancellation operation.\n     *     {@code false} means the pop-up window processing result is considered as a cancellation.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onPrompt(callback: Callback<OnPromptEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the web page receives a JavaScript console message.\n     *\n     * @param { function } callback The triggered function when the web page receives a JavaScript console message.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the web page receives a JavaScript console message.\n     *\n     * @param { function } callback The triggered function when the web page receives a JavaScript console message.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web page receives a JavaScript console message.\n     *\n     * @param {  Callback<OnConsoleEvent, boolean> } callback The triggered function when the web page receives a JavaScript console message.\n     *     {@code true} means the message will no longer be printed to the console.\n     *     {@code false} means it will still be printed to the console.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onConsole(callback: Callback<OnConsoleEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the web page receives a web resource loading error.\n     *\n     * @param { function } callback The triggered function when the web page receives a web resource loading error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the web page receives a web resource loading error.\n     *\n     * @param { function } callback The triggered function when the web page receives a web resource loading error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @since 10\n     */\n    /**\n     * Triggered when the web page receives a web resource loading error.\n     *\n     * @param { function } callback The triggered function when the web page receives a web resource loading error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web page receives a web resource loading error.\n     *\n     * @param { Callback<OnErrorReceiveEvent> } callback The triggered function when the web page receives a web resource loading error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onErrorReceive(callback: Callback<OnErrorReceiveEvent>): WebAttribute;\n    /**\n     * Triggered when the web page receives a web resource loading HTTP error.\n     *\n     * @param { function } callback The triggered function when the web page receives a web resource loading HTTP error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the web page receives a web resource loading HTTP error.\n     *\n     * @param { function } callback The triggered function when the web page receives a web resource loading HTTP error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web page receives a web resource loading HTTP error.\n     *\n     * @param { Callback<OnHttpErrorReceiveEvent> } callback The triggered function when the web page receives a web resource loading HTTP error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onHttpErrorReceive(callback: Callback<OnHttpErrorReceiveEvent>): WebAttribute;\n    /**\n     * Triggered when starting to download.\n     *\n     * @param { function } callback The triggered function when starting to download.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when starting to download.\n     *\n     * @param { function } callback The triggered function when starting to download.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when starting to download.\n     *\n     * @param { Callback<OnDownloadStartEvent> } callback The triggered function when starting to download.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onDownloadStart(callback: Callback<OnDownloadStartEvent>): WebAttribute;\n    /**\n     * Triggered when the Web page refreshes accessed history.\n     *\n     * @param { function } callback The triggered callback when the Web page refreshes accessed history.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     */\n    /**\n     * Triggered when the Web page refreshes accessed history.\n     *\n     * @param { function } callback The triggered callback when the Web page refreshes accessed history.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the Web page refreshes accessed history.\n     *\n     * @param { Callback<OnRefreshAccessedHistoryEvent> } callback The triggered callback when the Web page refreshes accessed history.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Triggered when the Web page refreshes accessed history.\n     *\n     * @param { Callback<OnRefreshAccessedHistoryEvent> } callback The triggered callback when the Web page refreshes accessed history.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    onRefreshAccessedHistory(callback: Callback<OnRefreshAccessedHistoryEvent>): WebAttribute;\n    /**\n     * Triggered when the URL loading is intercepted.\n     *\n     * @param { function } callback The triggered callback when the URL loading is intercepted.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 10\n     * @useinstead ohos.web.WebAttribute#onLoadIntercept\n     */\n    onUrlLoadIntercept(callback: (event?: {\n        data: string | WebResourceRequest;\n    }) => boolean): WebAttribute;\n    /**\n     * Triggered when the Web page receives an ssl Error.\n     *\n     * @param { function } callback The triggered callback when the Web page receives an ssl Error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.WebAttribute#onSslErrorEventReceive\n     */\n    onSslErrorReceive(callback: (event?: {\n        handler: Function;\n        error: object;\n    }) => void): WebAttribute;\n    /**\n     * Triggered when the render process exits.\n     *\n     * @param { function } callback The triggered when the render process exits.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the render process exits.\n     *\n     * @param { function } callback The triggered when the render process exits.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the render process exits.\n     * Multiple Web components may share a single rendering process, and each affected Web component will trigger the callback.\n     * When the application handles this callback, it can call the related interface of the bound webviewController to\n     * restore the page. Such as {@link refresh}, {@link loadUrl}, etc.\n     * For details of component lifecycle callback, please refer to the lifecycle of Web components.\n     * @param { Callback<OnRenderExitedEvent> } callback The triggered when the render process exits.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onRenderExited(callback: Callback<OnRenderExitedEvent>): WebAttribute;\n    /**\n     * Triggered when the file selector shows.\n     *\n     * @param { function } callback The triggered when the file selector shows.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the file selector shows.\n     *\n     * @param { function } callback The triggered when the file selector shows.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the file selector shows.\n     * Call this function to handle HTML forms with a \"file\" input type. If this function is not called or returns false,\n     * the web component provides the default \"select file\" handling interface. If it returns true, the application can customize\n     * the \"select file\" response behavior.\n     *\n     * @param { Callback<OnShowFileSelectorEvent, boolean> } callback The triggered when the file selector shows.\n     *     {@code true} means the user can call the system-provided pop-up window capability.\n     *     {@code false} means the custom pop-up window drawn in the function is invalid.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onShowFileSelector(callback: Callback<OnShowFileSelectorEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the render process exits.\n     *\n     * @param { function } callback The triggered when the render process exits.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.WebAttribute#onRenderExited\n     */\n    onRenderExited(callback: (event?: {\n        detail: object;\n    }) => boolean): WebAttribute;\n    /**\n     * Triggered when the file selector shows.\n     *\n     * @param { function } callback The triggered when the file selector shows.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 8\n     * @deprecated since 9\n     * @useinstead ohos.web.WebAttribute#onShowFileSelector\n     */\n    onFileSelectorShow(callback: (event?: {\n        callback: Function;\n        fileSelector: object;\n    }) => void): WebAttribute;\n    /**\n     * Triggered when the url loading.\n     *\n     * @param { function } callback The triggered when the url loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the url loading.\n     *\n     * @param { function } callback The triggered when the url loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the url loading.\n     *\n     * @param { Callback<OnResourceLoadEvent> } callback The triggered when the url loading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onResourceLoad(callback: Callback<OnResourceLoadEvent>): WebAttribute;\n    /**\n     * Triggered when the web component exit the full screen mode.\n     *\n     * @param { function } callback The triggered function when the web component exit the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the web component exit the full screen mode.\n     *\n     * @param { function } callback The triggered function when the web component exit the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web component exit the full screen mode.\n     *\n     * @param { function } callback The triggered function when the web component exit the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    onFullScreenExit(callback: () => void): WebAttribute;\n    /**\n     * Triggered when the web component enter the full screen mode.\n     *\n     * @param { function } callback The triggered function when the web component enter the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the web component enter the full screen mode.\n     *\n     * @param { function } callback The triggered function when the web component enter the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the web component enter the full screen mode.\n     *\n     * @param { OnFullScreenEnterCallback } callback - The triggered function when the web component enter the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    /**\n     * Triggered when the web component enter the full screen mode.\n     *\n     * @param { OnFullScreenEnterCallback } callback - The triggered function when the web component enter the full screen mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    onFullScreenEnter(callback: OnFullScreenEnterCallback): WebAttribute;\n    /**\n     * Triggered when the scale of WebView changed.\n     *\n     * @param { function } callback The triggered when the scale of WebView changed.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the scale of WebView changed.\n     *\n     * @param { function } callback The triggered when the scale of WebView changed.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the scale of WebView changed.\n     *\n     * @param { Callback<OnScaleChangeEvent> } callback The triggered when the scale of WebView changed.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onScaleChange(callback: Callback<OnScaleChangeEvent>): WebAttribute;\n    /**\n     * Triggered when the browser needs credentials from the user.\n     *\n     * @param { function } callback The triggered when the browser needs credentials from the user.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the browser needs credentials from the user.\n     *\n     * @param { function } callback The triggered when the browser needs credentials from the user.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the browser needs credentials from the user.\n     *\n     * @param { Callback<OnHttpAuthRequestEvent, boolean> } callback The triggered when the browser needs credentials from the user.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onHttpAuthRequest(callback: Callback<OnHttpAuthRequestEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when the resources loading is intercepted.\n     *\n     * @param { function } callback The triggered callback when the resources loading is intercepted.\n     * @returns { WebAttribute } If the response value is null, the Web will continue to load the resources. Otherwise, the response value will be used\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the resources loading is intercepted.\n     *\n     * @param { function } callback The triggered callback when the resources loading is intercepted.\n     * @returns { WebAttribute } If the response value is null, the Web will continue to load the resources. Otherwise, the response value will be used\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the resources loading is intercepted.\n     *\n     * @param { Callback<OnInterceptRequestEvent, WebResourceResponse> } callback The triggered callback when the resources loading is intercepted.\n     * @returns { WebAttribute } If the response value is null, the Web will continue to load the resources. Otherwise, the response value will be used\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onInterceptRequest(callback: Callback<OnInterceptRequestEvent, WebResourceResponse>): WebAttribute;\n    /**\n     * Triggered when the host application that web content from the specified origin is attempting to access the resources.\n     *\n     * @param { function } callback The triggered callback when the host application that web content from the specified origin is\n     *     attempting to access the resources.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the host application that web content from the specified origin is attempting to access the resources.\n     *\n     * @param { function } callback The triggered callback when the host application that web content from the specified origin is\n     *     attempting to access the resources.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when a permission request is received. To call this API, you need to declare the ohos.permission.CAMERA and ohos.permission.MICROPHONE permissions.\n     *\n     * @param { Callback<OnPermissionRequestEvent> } callback Callback invoked when a permission request is received.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onPermissionRequest(callback: Callback<OnPermissionRequestEvent>): WebAttribute;\n    /**\n     * Triggered when the host application that web content from the specified origin is requesting to capture screen.\n     * @param { function } callback The triggered callback when the host application that web content from the specified origin is\n     *     requesting to capture screen.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Triggered when the host application that web content from the specified origin is requesting to capture screen.\n     * @param { function } callback The triggered callback when the host application that web content from the specified origin is\n     *     requesting to capture screen.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called when a screen capture request is received.\n     *\n     * @param { Callback<OnScreenCaptureRequestEvent> } callback Called when a screen capture request is received.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onScreenCaptureRequest(callback: Callback<OnScreenCaptureRequestEvent>): WebAttribute;\n    /**\n     * Triggered when called to allow custom display of the context menu.\n     *\n     * @param { function } callback The triggered callback when called to allow custom display of the context menu.\n     * @returns { WebAttribute } If custom display return true.Otherwise, default display return false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when called to allow custom display of the context menu.\n     *\n     * @param { function } callback The triggered callback when called to allow custom display of the context menu.\n     * @returns { WebAttribute } If custom display return true.Otherwise, default display return false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when called to allow custom display of the context menu.\n     *\n     * @param { Callback<OnContextMenuShowEvent, boolean> } callback The triggered callback when called to allow custom display of the context menu.\n     *     {@code true} means the custom menu is triggered.\n     *     {@code false} means the custom menu is invalid.\n     * @returns { WebAttribute } If custom display return true.Otherwise, default display return false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onContextMenuShow(callback: Callback<OnContextMenuShowEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when called to allow custom hide of the context menu.\n     *\n     * @param { OnContextMenuHideCallback } callback The triggered function when called to allow custom hide of the context menu.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onContextMenuHide(callback: OnContextMenuHideCallback): WebAttribute;\n    /**\n     * Set whether media playback needs to be triggered by user gestures.\n     *\n     * @param { boolean } access True if it needs to be triggered manually by the user else false.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Set whether to manually play audio-only videos. The playback of muted videos is not controlled by this interface.\n     *\n     * @param { boolean } access Set whether to manually play audio-only videos.\n     *  {@code true}True means setting up automatic playback of audio videos requires users to manually click, {@code false} otherwise.\n     *    Default value: true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    mediaPlayGestureAccess(access: boolean): WebAttribute;\n    /**\n     * Notify search result to host application through onSearchResultReceive.\n     *\n     * @param { function } callback Function Triggered when the host application call searchAllAsync.\n     * or searchNext api on WebController and the request is valid.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Notify search result to host application through onSearchResultReceive.\n     *\n     * @param { function } callback Function Triggered when the host application call searchAllAsync.\n     * or searchNext api on WebController and the request is valid.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Notify search result to host application through onSearchResultReceive.\n     *\n     * @param { Callback<OnSearchResultReceiveEvent> } callback Function Triggered when the host application call searchAllAsync.\n     * or searchNext api on WebController and the request is valid.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onSearchResultReceive(callback: Callback<OnSearchResultReceiveEvent>): WebAttribute;\n    /**\n     * Triggered when the scroll bar slides to the specified position.\n     *\n     * @param { function } callback Function Triggered when the scroll bar slides to the specified position.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the scroll bar slides to the specified position.\n     *\n     * @param { function } callback Function Triggered when the scroll bar slides to the specified position.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the scroll bar slides to the specified position.\n     *\n     * @param { Callback<OnScrollEvent> } callback Function Triggered when the scroll bar slides to the specified position.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onScroll(callback: Callback<OnScrollEvent>): WebAttribute;\n    /**\n     * Called to notify users when an SSL error occurs with a request for the main frame.\n     * To include errors with requests for subframes, use the OnSslErrorEvent API.\n     *\n     * @param { function } callback The triggered callback when the Web page receives an ssl Error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Called to notify users when an SSL error occurs with a request for the main frame.\n     * To include errors with requests for subframes, use the OnSslErrorEvent API.\n     *\n     * @param { function } callback The triggered callback when the Web page receives an ssl Error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called to notify users when an SSL error occurs with a request for the main frame.\n     * To include errors with requests for subframes, use the OnSslErrorEvent API.\n     *\n     * @param { Callback<OnSslErrorEventReceiveEvent> } callback The triggered callback when the Web page receives an ssl Error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onSslErrorEventReceive(callback: Callback<OnSslErrorEventReceiveEvent>): WebAttribute;\n    /**\n     * Called to notify users when an SSL error occurs during the loading of resources (for the main frame and subframes).\n     * To handle SSL errors for requests for the main frame, use the isMainFrame field to distinguish.\n     *\n     * @param { OnSslErrorEventCallback } callback The triggered callback when the Web page receives an ssl Error.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onSslErrorEvent(callback: OnSslErrorEventCallback): WebAttribute;\n    /**\n     * Triggered when the Web page needs ssl client certificate from the user.\n     *\n     * @param { function } callback The triggered callback when needs ssl client certificate from the user.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the Web page needs ssl client certificate from the user.\n     *\n     * @param { function } callback The triggered callback when needs ssl client certificate from the user.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the Web page needs ssl client certificate from the user.\n     *\n     * @param { Callback<OnClientAuthenticationEvent> } callback The triggered callback when needs ssl client certificate from the user.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onClientAuthenticationRequest(callback: Callback<OnClientAuthenticationEvent>): WebAttribute;\n    /**\n     * Triggered when web page requires the user to create a window.\n     *\n     * @param { function } callback The triggered callback when web page requires the user to create a window.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when web page requires the user to create a window.\n     *\n     * @param { function } callback The triggered callback when web page requires the user to create a window.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when web page requires the user to create a window.\n     * If the {@link setWebController} interface is not called, the render process will be blocked.\n     * If no new window is created, it is set to null when calling the {@link setWebController} interface,\n     * informing the Web that no new window is created.\n     * The new window should avoid being directly overlaid on the original Web component,\n     * and its URL (such as address bar) should be clearly displayed in the same form as the main page to\n     * prevent users from being confused. If credible URL visualization management cannot be achieved,\n     * it is necessary to consider prohibiting the creation of new windows. It should be noted that the source of\n     * the new window request cannot be traced reliably, and it may be initiated by a third party iframe.\n     * The application needs to take defensive measures such as sandbox isolation and permission restriction\n     * by default to ensure security.\n     * @param {  Callback<OnWindowNewEvent> } callback The triggered callback when web page requires the user to create a window.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onWindowNew(callback: Callback<OnWindowNewEvent>): WebAttribute;\n    /**\n     * Triggered when web page requires the user to close a window.\n     *\n     * @param { function } callback The triggered callback when web page requires the user to close a window.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Notifies the user of the window closing request.\n     * Like {@link onWindowNew}, from a security perspective, applications should ensure that users can know that\n     * the page they interact with is closed.\n     * @param { function } callback The triggered callback when web page requires the user to close a window.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onWindowExit(callback: () => void): WebAttribute;\n    /**\n     * Set whether multiple windows are supported.\n     *\n     * @param { boolean } multiWindow True if it needs to be triggered manually by the user else false.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Set whether multiple windows are supported.\n     * When multiple windows permissions are enabled, the {@link onWindowNew} event needs to be implemented.\n     * @param { boolean } multiWindow True if it needs to be triggered manually by the user else false.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    multiWindowAccess(multiWindow: boolean): WebAttribute;\n    /**\n     * Key events notify the application before the WebView consumes them.\n     *\n     * @param { function } callback Key event info.\n     * @returns { WebAttribute } True if the application consumes key events else false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Key events notify the application before the WebView consumes them.\n     * @param { function } callback Key event info.\n     * @returns { WebAttribute } True if the application consumes key events else false.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onInterceptKeyEvent(callback: (event: KeyEvent) => boolean): WebAttribute;\n    /**\n     * Set the font of webview standard font library. The default font is \"sans serif\".\n     *\n     * @param { string } family Standard font set series.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the standard font family for the web page.\n     *\n     * @param { string } family Sets the standard font family for the web page.\n     *    Default value: sans-serif.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    webStandardFont(family: string): WebAttribute;\n    /**\n     * Set the font of webview serif font library. The default font is \"serif\".\n     *\n     * @param { string } family Serif font set series.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the standard font family for the web page.\n     *\n     * @param { string } family Sets the standard font family for the web page.\n     *    Default value: sans-serif.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    webSerifFont(family: string): WebAttribute;\n    /**\n     * Set the font of webview sans serif font library. The default font is \"sans-serif\".\n     *\n     * @param { string } family Sans serif font set series.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the sans serif font family for the web page.\n     *\n     * @param { string } family Sets the sans serif font family for the web page.\n     *    Default value: sans-serif.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    webSansSerifFont(family: string): WebAttribute;\n    /**\n     * Set the font of webview fixed font library. The default font is \"monospace\".\n     *\n     * @param { string } family Fixed font set series.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the fixed font family for the web page.\n     *\n     * @param { string } family Sets the fixed font family for the web page.\n     *    Default value: monospace.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    webFixedFont(family: string): WebAttribute;\n    /**\n     * Set the font of webview fantasy font library. The default font is \"fantasy\".\n     *\n     * @param { string } family fantasy font set series.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the fantasy font family for the web page.\n     *\n     * @param { string } family Sets the fantasy font family for the web page.\n     *    Default value: fantasy.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    webFantasyFont(family: string): WebAttribute;\n    /**\n     * Set the font of webview cursive font library. The default font is \"cursive\".\n     *\n     * @param { string } family Cursive font set series.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the cursive font family for the web page.\n     *\n     * @param { string } family Sets the cursive font family for the web page.\n     *    Default value: cursive.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    webCursiveFont(family: string): WebAttribute;\n    /**\n     * Set the default fixed font value of webview. The default value is 13, ranging from 1 to 72.\n     *\n     * @param { number } size Font size.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the default font size for the web page.\n     *\n     * @param { number } size Default fixed font size to set, in px.\n     *    The value ranges from -2^31 to 2^31-1. In actual rendering,\n     *    values greater than 72 are handled as 72, and values less than 1 are handled as 1.\n     *    Default value: 13.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    defaultFixedFontSize(size: number): WebAttribute;\n    /**\n     * Set the default font value of webview. The default value is 16, ranging from 1 to 72.\n     *\n     * @param { number } size Font size.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the default font size for the web page.\n     *\n     * @param { number } size Default font size to set, in px.\n     *    The value ranges from -2^31 to 2^31-1. In actual rendering, values greater than 72 are handled as 72,\n     *    and values less than 1 are handled as 1. Default value: 16.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    defaultFontSize(size: number): WebAttribute;\n    /**\n     * Set the minimum value of webview font. The default value is 8, ranging from 1 to 72.\n     *\n     * @param { number } size Font size.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the minimum font size for the web page.\n     *\n     * @param { number } size Minimum font size to set, in px.\n     *    The value ranges from -2^31 to 2^31-1. In actual rendering,\n     *    values greater than 72 are handled as 72, and values less than 1 are handled as 1.\n     *    Default value: 8\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    minFontSize(size: number): WebAttribute;\n    /**\n     * Set the logical minimum value of webview font. The default value is 8, ranging from 1 to 72.\n     *\n     * @param { number } size Font size.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets the minimum logical font size for the web page.\n     *\n     * @param { number } size Minimum logical font size to set, in px.\n     *    The value ranges from -2^31 to 2^31-1. In actual rendering,\n     *    values greater than 72 are handled as 72, and values less than 1 are handled as 1.\n     *    Default value: 8\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    minLogicalFontSize(size: number): WebAttribute;\n    /**\n     * Set the default text encodingFormat value of webview. The default value is UTF-8.\n     *\n     * @param { string } textEncodingFormat text encodingFormat.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    defaultTextEncodingFormat(textEncodingFormat: string): WebAttribute;\n    /**\n     * Whether force display the scroll bar.\n     *\n     * @param { boolean } enabled {@code true} means show; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    forceDisplayScrollBar(enabled: boolean): WebAttribute;\n    /**\n     * Whether web component can load resource from network.\n     *\n     * @param { boolean } block {@code true} means it can't load resource from network; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Whether web component can load resource from network.\n     *\n     * @param { boolean } block {@code true} means it can't load resource from network; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Whether web component can load resource from network.\n     *\n     * @param { boolean } block {@code true} means it can't load resource from network; {@code false} otherwise.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 18\n     */\n    blockNetwork(block: boolean): WebAttribute;\n    /**\n     * Set whether paint horizontal scroll bar.\n     *\n     * @param { boolean } horizontalScrollBar True if it needs to paint horizontal scroll bar.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Set whether paint horizontal scroll bar.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * After controlling the horizontal scrollbar's visibility through the @State variable, you need to call controller.refresh() to take effect.<br>\n     * When frequently changing the @State variable dynamically, it is recommended to match the toggle variable with the Web component one-to-one.\n     * </p>\n     *\n     * @param { boolean } horizontalScrollBar True if it needs to paint horizontal scroll bar.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    horizontalScrollBarAccess(horizontalScrollBar: boolean): WebAttribute;\n    /**\n     * Set whether paint vertical scroll bar.\n     *\n     * @param { boolean } verticalScrollBar True if it needs to paint vertical scroll bar.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Set whether paint vertical scroll bar, including the system default scrollbar and user-defined scrollbar.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * After controlling the vertical scrollbar's visibility through the @State variable, you need to call controller.refresh() to take effect.<br>\n     * When frequently changing the @State variable dynamically, it is recommended to match the toggle variable with the Web component one-to-one.\n     * </p>\n     *\n     * @param { boolean } verticalScrollBar True if it needs to paint vertical scroll bar.\n     *    The default value is true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    verticalScrollBarAccess(verticalScrollBar: boolean): WebAttribute;\n    /**\n     * Triggered when the application receive the url of an apple-touch-icon.\n     *\n     * @param { function } callback The triggered callback when the application receive an new url of an\n     * apple-touch-icon.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the application receive the url of an apple-touch-icon.\n     *\n     * @param { function } callback The triggered callback when the application receive an new url of an\n     * apple-touch-icon.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the application receive the url of an apple-touch-icon.\n     *\n     * @param { Callback<OnTouchIconUrlReceivedEvent> } callback The triggered callback when the application receive an new url of an\n     * apple-touch-icon.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onTouchIconUrlReceived(callback: Callback<OnTouchIconUrlReceivedEvent>): WebAttribute;\n    /**\n     * Triggered when the application receive a new favicon for the current web page.\n     *\n     * @param { function } callback The triggered callback when the application receive a new favicon for the\n     * current web page.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the application receive a new favicon for the current web page.\n     *\n     * @param { function } callback The triggered callback when the application receive a new favicon for the\n     * current web page.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the application receive a new favicon for the current web page.\n     *\n     * @param { Callback<OnFaviconReceivedEvent> } callback The triggered callback when the application receive a new favicon for the\n     * current web page.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onFaviconReceived(callback: Callback<OnFaviconReceivedEvent>): WebAttribute;\n    /**\n     * Triggered when previous page will no longer be drawn and next page begin to draw.\n     *\n     * @param { function } callback The triggered callback when previous page will no longer be drawn and next\n     * page begin to draw.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when previous page will no longer be drawn and next page begin to draw.\n     *\n     * @param { function } callback The triggered callback when previous page will no longer be drawn and next\n     * page begin to draw.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when previous page will no longer be drawn and next page begin to draw.\n     *\n     * @param {  Callback<OnPageVisibleEvent> } callback The triggered callback when previous page will no longer be drawn and next\n     * page begin to draw.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onPageVisible(callback: Callback<OnPageVisibleEvent>): WebAttribute;\n    /**\n     * Triggered when the form could be resubmitted.\n     *\n     * @param { function } callback The triggered callback to decision whether resend form data or not.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Triggered when the form could be resubmitted.\n     *\n     * @param { function } callback The triggered callback to decision whether resend form data or not.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the form could be resubmitted.\n     *\n     * @param { Callback<OnDataResubmittedEvent> } callback The triggered callback to decision whether resend form data or not.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onDataResubmitted(callback: Callback<OnDataResubmittedEvent>): WebAttribute;\n    /**\n     * Set whether enable pinch smooth mode.\n     *\n     * @param { boolean } isEnabled True if it needs to enable smooth mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 9\n     */\n    /**\n     * Sets whether to enable smooth pinch mode for the web page.\n     *\n     * @param { boolean } isEnabled Whether to enable smooth pinch mode for the web page.\n     *    {@code true} means to enable smooth pinch mode for the web page;\n     *    {@code false} means not to enable smooth pinch mode for the web page.\n     *    The default value is false.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    pinchSmooth(isEnabled: boolean): WebAttribute;\n    /**\n     * Whether the window can be open automatically through JavaScript.\n     *\n     * @param { boolean } flag If it is true, the window can be opened automatically through JavaScript.\n     * If it is false and user behavior, the window can be opened automatically through JavaScript.\n     * Otherwise, the window cannot be opened.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Whether the window can be open automatically through JavaScript.\n     *\n     * @param { boolean } flag If it is true, the window can be opened automatically through JavaScript.\n     * If it is false and user behavior, the window can be opened automatically through JavaScript.\n     * Otherwise, the window cannot be opened.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    allowWindowOpenMethod(flag: boolean): WebAttribute;\n    /**\n     * Triggered when the playing state of audio on web page changed.\n     *\n     * @param { function } callback The playing state of audio on web page.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Triggered when the playing state of audio on web page changed.\n     *\n     * @param { function } callback The playing state of audio on web page.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Set the callback function when the audio playback status on the webpage changes.\n     *\n     * @param { Callback<OnAudioStateChangedEvent> } callback Callback invoked when the audio playback status on the webpage changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onAudioStateChanged(callback: Callback<OnAudioStateChangedEvent>): WebAttribute;\n    /**\n     * Triggered when the first content rendering of web page.\n     *\n     * @param { function } callback\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Triggered when the first content rendering of web page.\n     *\n     * @param { function } callback\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the first content rendering of web page.\n     *\n     * @param { Callback<OnFirstContentfulPaintEvent> } callback\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onFirstContentfulPaint(callback: Callback<OnFirstContentfulPaintEvent>): WebAttribute;\n    /**\n     * Called when the First rendering of meaningful content time(FMP)\n     *\n     * @param { OnFirstMeaningfulPaintCallback } callback Function Triggered when the firstMeaningfulPaint.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onFirstMeaningfulPaint(callback: OnFirstMeaningfulPaintCallback): WebAttribute;\n    /**\n     * Called when the Maximum content rendering time(LCP).\n     *\n     * @param { OnLargestContentfulPaintCallback } callback Function Triggered when the largestContentfulPaint.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onLargestContentfulPaint(callback: OnLargestContentfulPaintCallback): WebAttribute;\n    /**\n     * Triggered when the resources loading is intercepted.\n     *\n     * @param { function } callback The triggered callback when the resources loading is intercepted.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Triggered when the resources loading is intercepted.\n     *\n     * @param { function } callback The triggered callback when the resources loading is intercepted.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the resources loading is intercepted.\n     *\n     * @param { Callback<OnLoadInterceptEvent, boolean> } callback The triggered callback when the resources loading is intercepted.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 12\n     */\n    onLoadIntercept(callback: Callback<OnLoadInterceptEvent, boolean>): WebAttribute;\n    /**\n     * Triggered when The controller is bound to the web component, this controller must be a WebviewController.\n     * This callback can not use the interface about manipulating web pages.\n     * @param { function } callback The triggered callback when web controller initialization success.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * The callback is triggered when the Controller is successfully bound to the Web component,\n     * and the Controller must be a WebviewController, and it is forbidden to call the interface related to\n     * the Web component before the event callback, otherwise a js-error exception will be thrown.\n     * Because the webpage has not been loaded when the callback is called, it is impossible to use interfaces related to\n     * operating webpages in the callback, such as {@link zoomIn} and {@link zoomOut}, and you can use interfaces unrelated to\n     * operating webpages such as {@link loadUrl} and {@link getWebId}.\n     * @param { function } callback The triggered callback when web controller initialization success.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @crossplatform\n     * @atomicservice\n     * @since 11\n     */\n    onControllerAttached(callback: () => void): WebAttribute;\n    /**\n     * Triggered when the over scrolling.\n     * @param { function } callback Function Triggered when the over scrolling.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 10\n     */\n    /**\n     * Triggered when the over scrolling.\n     * @param { function } callback Function Triggered when the over scrolling.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Triggered when the over scrolling.\n     * @param { Callback<OnOverScrollEvent> } callback Function Triggered when the over scrolling.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onOverScroll(callback: Callback<OnOverScrollEvent>): WebAttribute;\n    /**\n     * Called when received website security risk check result.\n     *\n     * @param { OnSafeBrowsingCheckResultCallback } callback - Function triggered when received website security risk check result.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onSafeBrowsingCheckResult(callback: OnSafeBrowsingCheckResultCallback): WebAttribute;\n    /**\n     * Called when the load committed.\n     *\n     * @param { OnNavigationEntryCommittedCallback } callback Function Triggered when a load committed.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onNavigationEntryCommitted(callback: OnNavigationEntryCommittedCallback): WebAttribute;\n    /**\n     * Called when tracker's cookie is prevented.\n     *\n     * @param { OnIntelligentTrackingPreventionCallback } callback - Callback triggered when tracker's cookie is prevented.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onIntelligentTrackingPreventionResult(callback: OnIntelligentTrackingPreventionCallback): WebAttribute;\n    /**\n     * Injects the JavaScripts script into the Web component.\n     * When the specified page or document starts to be loaded, the script is executed on any page whose source matches scriptRules.\n     * <p><strong>API Note</strong>:<br>\n     * The script runs before any JavaScript code of the page, when the DOM tree may not have been loaded or rendered.\n     * The script is executed in the lexicographic order instead of array sequence.\n     * if the array sequemce is required, you are advised to use the runJavaScriptOnDocumentStart interface.\n     * You are not advised to use this API together with runJavaScriptOnDocumentStart.\n     * </p>\n     *\n     * @param { Array<ScriptItem> } scripts - The array of the JavaScripts to be injected.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    javaScriptOnDocumentStart(scripts: Array<ScriptItem>): WebAttribute;\n    /**\n     * Injects the JavaScripts script into the Web component. When the specified page or document has been loaded,\n     * the script is executed on any page whose source matches scriptRules.\n     * <p><strong>API NOTE</strong>:<br>\n     * The script runs before any Javascript code of the page, when the DOM tree has been loaded and rendered.\n     * The script is excuted in the lexicographic order, not the array order.\n     * You are not advised to use this API together with runJavaScriptOnDocumentEnd.\n     * <p>\n     *\n     * @param { Array<ScriptItem> } scripts - The array of the JavaScripts to be injected.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    javaScriptOnDocumentEnd(scripts: Array<ScriptItem>): WebAttribute;\n    /**\n     * Sets the web layout mode.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * Currently, only two web layout modes are supported: WebLayoutMode.NONE and WebLayoutMode.FIT_CONTENT.\n     * The following restrictions apply with the usage of WebLayoutMode.FIT_CONTENT:\n     * - If the Web component is wider or longer than 7680 px, specify the RenderMode.SYNC_RENDER mode\n     *   when creating the Web component; otherwise, the screen may be blank.\n     * - After the Web component is created, dynamic switching of the layoutMode is not supported.\n     * - The width and height of a Web component cannot exceed 500,000 px when the RenderMode.SYNC_RENDER mode is specified,\n     *   and cannot exceed 7680 px when the RenderMode.ASYNC_RENDER mode is specified.\n     * - Frequent changes to the page width and height will trigger a re-layout of the Web component,\n     *   which can affect the user experience.\n     * - Waterfall web pages are not supported (drop down to the bottom to load more).\n     * - Only height adaptation is supported. Width adaptation is not supported.\n     * - Because the height is adaptive to the web page height,\n     *   the component height cannot be changed by modifying the component height attribute.\n     * </p>\n     *\n     * @param { WebLayoutMode } mode - The web layout mode, follow the system or adaptive layout.\n     *    The default value is WebLayoutMode.NONE.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    layoutMode(mode: WebLayoutMode): WebAttribute;\n    /**\n     * Called to setting the nested scroll options.\n     *\n     * @param { NestedScrollOptions } value - options for nested scrolling.\n     * @returns { WebAttribute } the attribute of the scroll.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    /**\n     * Called to setting the nested scroll options.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * You can set four directions: up, down, left, and right, or set nested scrolling modes for forward and backward directions\n     * to achieve scrolling linkage with the parent component.<br>\n     * When value is of type NestedScrollOptionsExt (four directions: up, down, left, and right), the default scrolling options\n     * for scrollUp, scrollDown, scrollLeft, and scrollRight are NestedScrollMode.SELF_FIRST.<br>\n     * When value is of type NestedScrollOptions (two directions: forward and backward), the default scrolling options for scrollForward\n     * and scrollBackward are NestedScrollMode.SELF_FIRST.<br>\n     * Supported nested scrolling containers: Grid, List, Scroll, Swiper, Tabs, WaterFlow, Refresh, bindSheet.<br>\n     * Supported nested scrolling input events: gestures, mouse, and trackpad.<br>\n     * In nested scrolling scenarios, since web scrolling to the edge will prioritize triggering the overscroll bounce effect,\n     * it is recommended to set overScrollMode to OverScrollMode.NEVER to avoid affecting the user experience in this scenario.\n     * </p>\n     *\n     * @param { NestedScrollOptions | NestedScrollOptionsExt } value - options for\n     *     nested scrolling.\n     * @returns { WebAttribute } the attribute of the scroll.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 14\n     */\n    nestedScroll(value: NestedScrollOptions | NestedScrollOptionsExt): WebAttribute;\n    /**\n     * Sets the enable native embed mode for web.\n     *\n     * <p><strong>API Note</strong>:\n     * <strong>Performance Note</strong>:\n     * <p>For details about how to rendering native components on the Web using same-layer rendering,\n     * see [Rendering Native Components on the Web Using Same-Layer Rendering]{@link https://developer.huawei.com/consumer/en/doc/best-practices/bpta-render-web-using-same-layer-render}\n     * </p>\n     *\n     * @param { boolean } mode - True if it needs to enable native embed mode.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    enableNativeEmbedMode(mode: boolean): WebAttribute;\n    /**\n     * Registers the HTML tag name and type for same-layer rendering.\n     * The tag name only supports object and embed.\n     * The tag type only supports visible ASCII characters.<br>\n     * If the specified type is the same as the W3C standard object or embed type,\n     * the ArkWeb kernel identifies the type as a non-same-layer tag.<br>\n     * This API is also controlled by the enableNativeEmbedMode API and\n     * does not take effect if same-layer rendering is not enabled. When this API is not used,\n     * the ArkWeb engine recognizes the embed tags with the \"native/\" prefix as same-layer tags.\n     *\n     * @param { string } tag - Tag name.\n     * @param { string } type - Type of the tag, The kernel matches this parameter with a prefix.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    registerNativeEmbedRule(tag: string, type: string): WebAttribute;\n    /**\n     * Triggered when embed lifecycle changes.\n     *\n     * <p><strong>API Note</strong>:\n     * <strong>Performance Note</strong>:\n     * <p>For details about how to rendering native components on the Web using same-layer rendering,\n     * see [Rendering Native Components on the Web Using Same-Layer Rendering]{@link https://developer.huawei.com/consumer/en/doc/best-practices/bpta-render-web-using-same-layer-render}\n     * </p>\n     *\n     * @param { function } callback - Function Triggered when embed lifecycle changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onNativeEmbedLifecycleChange(callback: (event: NativeEmbedDataInfo) => void): WebAttribute;\n    /**\n     * Called when the visibility of a same-layer tag (such as an Embed tag or an Object tag) on a web page changes in the viewport.\n     * By default, the same-layer tag is invisible. If the rendering tag is visible when you access the page for the first time,\n     * the callback is triggered; otherwise, it is not triggered. That is, if the same-layer tag changes from a non-zero value to 0 x 0,\n     * the callback is triggered. If the rendering tag size changes from 0 x 0 to a non-zero value, the callback is not triggered.\n     * If all the same-layer tags are invisible, they are reported as invisible. If all the same-layer rendering tags or part of them are visible,\n     * they are reported as invisible.\n     *\n     * @param { OnNativeEmbedVisibilityChangeCallback } callback - Callback triggered when embed visibility changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    onNativeEmbedVisibilityChange(callback: OnNativeEmbedVisibilityChangeCallback): WebAttribute;\n    /**\n     * Triggered when gesture effect on embed tag.\n     *\n     * <p><strong>API Note</strong>:\n     * <strong>Performance Note</strong>:\n     * <p>For details about how to rendering native components on the Web using same-layer rendering,\n     * see [Rendering Native Components on the Web Using Same-Layer Rendering]{@link https://developer.huawei.com/consumer/en/doc/best-practices/bpta-render-web-using-same-layer-render}\n     * </p>\n     *\n     * @param { function } callback - Function Triggered when gesture effect on embed tag.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    onNativeEmbedGestureEvent(callback: (event: NativeEmbedTouchInfo) => void): WebAttribute;\n    /**\n     * Called to set copy option\n     *\n     * @param { CopyOptions } value - copy option.The default value is CopyOptions.LocalDevice.\n     * @returns { WebAttribute } the attribute of the scroll.\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 11\n     */\n    copyOptions(value: CopyOptions): WebAttribute;\n    /**\n     * When the URL is about to be loaded into the current Web, it gives the application the opportunity to take control.\n     * This will not called for POST requests, may be called for subframes and with non-HTTP(S) schemes.\n     *\n     * @param { OnOverrideUrlLoadingCallback } callback - The callback for onOverrideUrlLoading.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onOverrideUrlLoading(callback: OnOverrideUrlLoadingCallback): WebAttribute;\n    /**\n     * Sets whether automatic text resizing is enabled.\n     *\n     * @param { boolean } textAutosizing - Whether automatic text resizing is enabled.\n     *    {@code true} means enable text autosizing;\n     *    {@code false} means disable text autosizing.\n     *    Default value: true.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    textAutosizing(textAutosizing: boolean): WebAttribute;\n    /**\n     * Enable the application takeover of web media playback feature.\n     *\n     * @param { NativeMediaPlayerConfig } config - The configuration of native media player.\n     *    enable: whether to enable the feature, shouldOverlay: whether the image of the video player\n     *    taken over by the application will overlay the web page content, if this feature is enabled.\n     *    Default value: {enable: false, shouldOverlay: false}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    enableNativeMediaPlayer(config: NativeMediaPlayerConfig): WebAttribute;\n    /**\n     * Triggered when render process not responding.\n     * If the Web component can't handle the input event, or can't navigate to the new URL within a reasonable time range,\n     * the Web page process is considered unresponsive and the callback will be triggered.\n     * As long as the web process has been unresponsive, this callback may continue to trigger until\n     * the web process responds again, at which time {@link onRenderProcessResponding} will trigger.\n     * Applications can terminate the associated rendering process through the WebviewController interface {@link terminateRenderProcess},\n     * which may affect other Web components in the same rendering process.\n     * @param { OnRenderProcessNotRespondingCallback } callback The triggered function when render process not responding.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    onRenderProcessNotResponding(callback: OnRenderProcessNotRespondingCallback): WebAttribute;\n    /**\n     * This callback function is triggered when the rendering process changes from unresponsive state to normal operation state,\n     * which indicates that the webpage is not really stuck.\n     *\n     * @param { OnRenderProcessRespondingCallback } callback The triggered function when the unresponsive render process becomes responsive.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    onRenderProcessResponding(callback: OnRenderProcessRespondingCallback): WebAttribute;\n    /**\n     * Set the custom text menu.\n     * The Web component custom menu extension item interface allows users to set the extension item's text content, icon, and callback method.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * This interface only supports selecting plain text. When the selected content contains images and other non-text content,\n     * garbled characters will be displayed in the action information.\n     * </p>\n     *\n     * @param { Array<ExpandedMenuItemOptions> } expandedMenuOptions - Customize text menu options.\n     *                                                                 The number of menu items, the content size of the menu, and the startIcon\n     *                                                                 icon size are consistent with the ArkUI Menu component.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     * @deprecated since 20\n     * @useinstead ohos.web.WebAttribute#editMenuOptions\n     */\n    selectionMenuOptions(expandedMenuOptions: Array<ExpandedMenuItemOptions>): WebAttribute;\n    /**\n     * Called when the viewport-fit configuration in the web page's <meta> tag changes.\n     * The application can adapt its layout to the viewport within this callback.\n     *\n     * @param { OnViewportFitChangedCallback } callback - Callback invoked when the viewport-fit configuration in the web page's <meta> tag changes.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onViewportFitChanged(callback: OnViewportFitChangedCallback): WebAttribute;\n    /**\n     * Editable elements (such as input labels) in web pages will call back to this interface before pulling up\n     * the soft keyboard. Applications can use this interface to intercept the pop-up of the system soft keyboard\n     * and configure the application-customized soft keyboard (according to this interface,\n     * the application can decide to use the system default soft keyboard/the system soft keyboard with\n     * the enter key customized/all the soft keyboards customized by the application).\n     *\n     * @param { WebKeyboardCallback } callback - The callback for onInterceptKeyboardAttach.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onInterceptKeyboardAttach(callback: WebKeyboardCallback): WebAttribute;\n    /**\n     * Called when received Ads blocked results.\n     * If blocked results exist at the end of page loading, the first call will be triggered.\n     * To avoid performance issues, subsequent results will be periodically reported through this api.\n     *\n     * @param { OnAdsBlockedCallback } callback - The callback for OnAdsBlockedCallback.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    onAdsBlocked(callback: OnAdsBlockedCallback): WebAttribute;\n    /**\n     * When the keyboard avoidance mode set by UIContext is {@link KeyboardAvoidMode.RESIZE} mode,\n     * the interface function will not take effect.\n     * @param { WebKeyboardAvoidMode } mode - The web keyboard avoid mode, which can be {@link WebKeyboardAvoidMode}.\n     *                                        Web soft keyboard avoidance is not recommended in nested scrolling scenes,\n     *                                        including RESIZE_VISUAL and RESIZE_CONTENT.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    keyboardAvoidMode(mode: WebKeyboardAvoidMode): WebAttribute;\n    /**\n     * Set the custom text menu.\n     *\n     * <p><strong>API Note</strong>:<br>\n     * The onCreateMenu interface is used to modify, add, and delete menu options.If you want to hide the text menu,\n     * you need to return an empty array.<br>\n     * The onMenuItemClick interface allows you to define the callback function for menu options.This function is\n     * triggered when a menu option is clicked, and it determines whether to execute the system's default callback\n     * based on the return value. Returning true prevents the system callback from executing, while returning false\n     * continues with the system callback.<br>\n     * The editMenuOptions interface makes the selectionMenuOptions (deprecated) not work when used at the same time.\n     * </p>\n     *\n     * @param { EditMenuOptions } editMenu - Customize text menu options.\n     *                                       The number of menu items, as well as the content size and icon size of the menu,\n     *                                       should be consistent with the ArkUI Menu component.\n     *                                       The system-provided id enumeration values (TextMenuItemId) in the menu are only\n     *                                       supportedfor CUT, COPY, PASTE, and SELECT_ALL in the web.\n     *                                       The textRange parameter in the onMenuItemClick function is meaningless in the web,\n     *                                       and the input value is -1.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 12\n     */\n    editMenuOptions(editMenu: EditMenuOptions): WebAttribute;\n    /**\n     * Enable or disable haptic feedback.\n     *\n     * @param { boolean } enabled - Default value is true, set false to disable haptic feedback.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    enableHapticFeedback(enabled: boolean): WebAttribute;\n    /**\n     * Bind to the selection menu.\n     *\n     * @param { WebElementType } elementType - Indicates the type of selection menu.\n     * @param { CustomBuilder } content - Indicates the content of selection menu.\n     * @param { WebResponseType } responseType - Indicates response type of selection menu.\n     * @param { SelectionMenuOptionsExt } [options] - Indicates the options of selection menu.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 13\n     */\n    bindSelectionMenu(elementType: WebElementType, content: CustomBuilder, responseType: WebResponseType, options?: SelectionMenuOptionsExt): WebAttribute;\n    /**\n     * Sets whether to optimize parser budget to reduce FCP time\n     *\n     * @param { boolean} optimizeParserBudget Default value is false, set true to enable optimize parser budget.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    optimizeParserBudget(optimizeParserBudget: boolean): WebAttribute;\n    /**\n     * Sets whether to follow the system font weight.\n     *\n     * @param { boolean } follow The value true means to follow the system font weight, and false means the opposite.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 18\n     */\n    enableFollowSystemFontWeight(follow: boolean): WebAttribute;\n    /**\n     * Sets whether to enable AVSession for web pages.\n     *\n     * @param { boolean } enabled Whether to enable AVSession. The value true means to enable AVSession, and false means the opposite.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 18\n     */\n    enableWebAVSession(enabled: boolean): WebAttribute;\n    /**\n     * Injects the JavaScripts that will be run just after document object has been created.\n     *\n     * @param { Array<ScriptItem> } scripts - The JavaScripts executed in array order.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    runJavaScriptOnDocumentStart(scripts: Array<ScriptItem>): WebAttribute;\n    /**\n     * Injects the JavaScripts that will be run after document has been parsed finished.\n     *\n     * @param { Array<ScriptItem> } scripts - The JavaScripts executed in array order.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    runJavaScriptOnDocumentEnd(scripts: Array<ScriptItem>): WebAttribute;\n    /**\n     * Injects the JavaScripts that will be run after head element has been parsed finished.\n     *\n     * @param { Array<ScriptItem> } scripts - The JavaScripts executed in array order.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 15\n     */\n    runJavaScriptOnHeadEnd(scripts: Array<ScriptItem>): WebAttribute;\n    /**\n     * Sets the embed options, only valid when enableNativeEmbedMode is true.\n     *\n     * @param { EmbedOptions } options The embed options, which can be {@link EmbedOptions}.\n     * @returns { WebAttribute }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 16\n     */\n    nativeEmbedOptions(options?: EmbedOptions): WebAttribute;\n}\n/**\n * Defines Web Component.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 8\n */\n/**\n * Defines Web Component.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @since 10\n */\n/**\n * Defines Web Component.\n *\n * <p><strong>API Note</strong>:\n *\n * <strong>Performance Note</strong>:\n * <p>For details about how to optimize the compilation, resource loading, and JSBridge performance,\n * see [Optimizing Web Page Loading]{@link https://developer.huawei.com/consumer/en/doc/best-practices/bpta-web-develop-optimization}\n * <p>When the white screen duration is long due to complex web page parsing,\n * you can enable [optimizeParserBudget]{@link WebAttribute.optimizeParserBudget} to reduce the first frame rendering content.</p>\n * </p>\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @crossplatform\n * @atomicservice\n * @since 11\n */\ndeclare const Web: WebInterface;\n/**\n * Defines Web Component instance.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @since 8\n */\n/**\n * Defines Web Component instance.\n *\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 11\n */\ndeclare const WebInstance: WebAttribute;\n/**\n * Defines the ssl error event.\n *\n * @typedef SslErrorEvent\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n */\ndeclare interface SslErrorEvent {\n    /**\n     * Notifies the user of the operation behavior of the web component.\n     *\n     * @type { SslErrorHandler }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    handler: SslErrorHandler;\n    /**\n     * Error codes.\n     *\n     * @type { SslError }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    error: SslError;\n    /**\n     * Request url.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    url: string;\n    /**\n     * Original url.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    originalUrl: string;\n    /**\n     * Referrer.\n     *\n     * @type { string }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    referrer: string;\n    /**\n     * Whether the error is fatal.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    isFatalError: boolean;\n    /**\n     * Whether the request is main frame.\n     *\n     * @type { boolean }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     */\n    isMainFrame: boolean;\n}\n/**\n * Defines the menu item option.\n *\n * @interface ExpandedMenuItemOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @atomicservice\n * @since 12\n * @deprecated since 20\n */\ndeclare interface ExpandedMenuItemOptions {\n    /**\n     * Customize what the menu displays.\n     *\n     * @type { ResourceStr }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     * @deprecated since 20\n     */\n    content: ResourceStr;\n    /**\n     * Customize the icon before the menu displays content.\n     *\n     * @type { ?ResourceStr }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     * @deprecated since 20\n     */\n    startIcon?: ResourceStr;\n    /**\n     * Get the selected text information.\n     *\n     * @type { function }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @atomicservice\n     * @since 12\n     * @deprecated since 20\n     */\n    action: (selectedText: {\n        plainText: string;\n    }) => void;\n}\n/**\n * Define nested scroll options\n *\n * @interface NestedScrollOptionsExt\n * @syscap SystemCapability.Web.Webview.Core\n * @since 14\n */\ndeclare interface NestedScrollOptionsExt {\n    /**\n     * Set NestedScrollMode when the scrollable component scrolls up\n     *\n     * @type { ?NestedScrollMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 14\n     */\n    scrollUp?: NestedScrollMode;\n    /**\n     * Set NestedScrollMode when the scrollable component scrolls down\n     *\n     * @type { ?NestedScrollMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 14\n     */\n    scrollDown?: NestedScrollMode;\n    /**\n     * Set NestedScrollMode when the scrollable component scrolls right\n     *\n     * @type { ?NestedScrollMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 14\n     */\n    scrollRight?: NestedScrollMode;\n    /**\n     * Set NestedScrollMode when the scrollable component scrolls left\n     *\n     * @type { ?NestedScrollMode }\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 14\n     */\n    scrollLeft?: NestedScrollMode;\n}\n/**\n * Defines the Embed Options.\n *\n * @typedef EmbedOptions\n * @syscap SystemCapability.Web.Webview.Core\n * @since 16\n */\ndeclare interface EmbedOptions {\n    /**\n     * Whether the embed element support the default intrinsic size of 300 * 150, expressed in CSS pixels.\n     * <br>When CSS size is set, the embed element size is CSS size, otherwise it is intrinsic size.\n     * <br>If true, then the intrinsic size is 300 * 150.\n     * <br>If false, the embed element will not be rendered when the CSS size is not set.\n     *\n     * @type { ?boolean }\n     * @default false\n     * @syscap SystemCapability.Web.Webview.Core\n     * @since 16\n     */\n    supportDefaultIntrinsicSize?: boolean;\n}\n",
}
export default FILE;